1
0
mirror of https://gitee.com/zoujingli/ThinkAdmin.git synced 2025-04-06 03:58:04 +08:00

[更新]修改微信网页授权

This commit is contained in:
邹景立 2017-04-17 15:26:57 +08:00
parent cffde2e5e8
commit c7d61964d9

@ -73,7 +73,7 @@ class BasicWechat extends Controller {
return $this->openid;
}
$this->fansinfo = WechatService::getFansInfo($this->openid);
if (is_array($this->fansinfo && $this->fansinfo['expires_in'] < time())) {
if (!empty($this->fansinfo) && $this->fansinfo['expires_in'] < time()) {
return $this->openid;
}
}