两处bug处理

This commit is contained in:
2017-10-13 15:26:41 +08:00
parent 0ca4e5f54b
commit d660451431
3 changed files with 12 additions and 12 deletions

View File

@@ -30,17 +30,17 @@ class Front extends Base {
$this->setThemes();
//微信访问时
if ($this->isMobile() && $this->is_wechat()) {
if (!session('oauth')) {
$this->getOpentId();
}else{
$this->wechat_oauth = session('oauth');
$this->assign('oauth', session('oauth'));
}
// if ($this->isMobile() && $this->is_wechat()) {
// if (!session('oauth')) {
// $this->getOpentId();
// }else{
// $this->wechat_oauth = session('oauth');
// $this->assign('oauth', session('oauth'));
// }
//微信用户直接使用微信登录
$this->WechatUser();
}
// //微信用户直接使用微信登录
// $this->WechatUser();
// }
}
/**