fetch(':index'); } /** * 分销用户注册 * @return mixed */ public function market(){ return $this->fetch(); } /** * 进入完善页面 */ public function entry(){ $needRegProfile = session('needRegProfile'); $isRegProfile = Member::where(['id'=> $this->userId])->value('is_reg_profile'); if($isRegProfile == 1 || $needRegProfile==false){ Wechat::redirectUrl(url('/weixin/match/index','','',true)); } return $this->fetch('entry'); } /** * 进入完善页面 */ public function entry1(){ $needRegProfile = session('needRegProfile'); if($needRegProfile == false){ // Wechat::redirectUrl(url('/weixin/match/index','','',true)); } return $this->fetch('entry1'); } /** * 图文 * @return mixed|string */ public function pic(){ return $this->fetch(); } public function comment(){ $url = input('url',''); $this->assign('url', base64_decode($url)); return $this->fetch(); } } ?>