diff --git a/app/portal/controller/BrandController.php b/app/portal/controller/BrandController.php index 9fcce54..b9a6fa8 100644 --- a/app/portal/controller/BrandController.php +++ b/app/portal/controller/BrandController.php @@ -107,6 +107,7 @@ class BrandController extends WeChatBaseController }else{ $like=0; } + $this->assign('like',$like); $this->assign('list',$data); return $this->fetch(); diff --git a/app/portal/controller/IndexController.php b/app/portal/controller/IndexController.php index 52e5f48..5277071 100644 --- a/app/portal/controller/IndexController.php +++ b/app/portal/controller/IndexController.php @@ -20,7 +20,6 @@ class IndexController extends WeChatBaseController { parent::_initialize(); $this->checkWeChatUserLogin(); - $this->checkUser(); } //首页接口 diff --git a/simplewind/cmf/controller/WeChatBaseController.php b/simplewind/cmf/controller/WeChatBaseController.php index 4a0fbc8..b842ebe 100644 --- a/simplewind/cmf/controller/WeChatBaseController.php +++ b/simplewind/cmf/controller/WeChatBaseController.php @@ -224,11 +224,8 @@ class WeChatBaseController extends BaseController $re=Db::name('users')->where(['open_id'=>session('wechat_user')['id']])->find(); if (!$re['mobile']){ $this->redirect(url('user/register/register')); -// }else{ -// return $re; }else{ - session('wechat_user')['users_id']=$re['id']; - var_dump(session('wechat_user')); + return $re; } } } \ No newline at end of file