mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-08-10 07:29:45 +08:00
[更新]修改微信网页授权
This commit is contained in:
parent
fe4803ad18
commit
c68f970527
@ -93,10 +93,7 @@ class BasicWechat extends Controller {
|
|||||||
exit("微信网页授权失败,{$wechat->errMsg}[{$wechat->errCode}]");
|
exit("微信网页授权失败,{$wechat->errMsg}[{$wechat->errCode}]");
|
||||||
}
|
}
|
||||||
session('openid', $this->openid = $result['openid']);
|
session('openid', $this->openid = $result['openid']);
|
||||||
if ($fullMode) {
|
!$fullMode && $this->redirect($redirect_url);
|
||||||
return $this->openid;
|
|
||||||
}
|
|
||||||
$this->redirect($redirect_url);
|
|
||||||
// 微信粉丝信息处理
|
// 微信粉丝信息处理
|
||||||
$this->fansinfo = WechatService::getFansInfo($this->openid);
|
$this->fansinfo = WechatService::getFansInfo($this->openid);
|
||||||
if (empty($this->fansinfo['expires_in']) || $this->fansinfo['expires_in'] < time()) {
|
if (empty($this->fansinfo['expires_in']) || $this->fansinfo['expires_in'] < time()) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user