mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-05-02 06:06:35 +08:00
[更新]修复微信粉丝保存失败
This commit is contained in:
parent
ed88dc5f24
commit
506c399663
@ -226,7 +226,7 @@ class Api extends Controller {
|
|||||||
$wechat = &load_wechat('User');
|
$wechat = &load_wechat('User');
|
||||||
$userInfo = $wechat->getUserInfo($this->openid);
|
$userInfo = $wechat->getUserInfo($this->openid);
|
||||||
$userInfo['subscribe'] = intval($subscribe);
|
$userInfo['subscribe'] = intval($subscribe);
|
||||||
WechatService::setFansInfo($userInfo, $this->appid);
|
WechatService::setFansInfo($userInfo, $wechat->appid);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
$data = ['subscribe' => '0', 'appid' => $this->appid, 'openid' => $this->openid];
|
$data = ['subscribe' => '0', 'appid' => $this->appid, 'openid' => $this->openid];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user