作者 潘浩文
1 个管道 的构建 通过 耗费 0 秒

1

... ... @@ -107,6 +107,7 @@ class BrandController extends WeChatBaseController
}else{
$like=0;
}
$this->assign('like',$like);
$this->assign('list',$data);
return $this->fetch();
... ...
... ... @@ -20,7 +20,6 @@ class IndexController extends WeChatBaseController
{
parent::_initialize();
$this->checkWeChatUserLogin();
$this->checkUser();
}
//首页接口
... ...
... ... @@ -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
... ...