mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-04-06 03:58:04 +08:00
[更新]修改微信网页授权
This commit is contained in:
parent
df5e4196b4
commit
cffde2e5e8
@ -68,7 +68,7 @@ class BasicWechat extends Controller {
|
||||
session('openid', 'o38gps3vNdCqaggFfrBRCRikwlWY');
|
||||
}
|
||||
// 检查缓存中 openid 信息是否完整
|
||||
if ($this->openid = session('openid')) {
|
||||
if (($this->openid = session('openid'))) {
|
||||
if (!$fullMode) {
|
||||
return $this->openid;
|
||||
}
|
||||
@ -93,8 +93,9 @@ class BasicWechat extends Controller {
|
||||
exit("微信网页授权失败,{$wechat->errMsg}[{$wechat->errCode}]");
|
||||
}
|
||||
session('openid', $this->openid = $result['openid']);
|
||||
eixt($redirect_url);
|
||||
!$fullMode && $this->redirect($redirect_url);
|
||||
if (!$fullMode) {
|
||||
$this->redirect($redirect_url);
|
||||
}
|
||||
// 微信粉丝信息处理
|
||||
$this->fansinfo = WechatService::getFansInfo($this->openid);
|
||||
if (empty($this->fansinfo['expires_in']) || $this->fansinfo['expires_in'] < time()) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user