[更新]修复微信粉丝保存失败

This commit is contained in:
邹景立 2017-04-16 17:40:42 +08:00
parent ed88dc5f24
commit 506c399663

View File

@ -226,7 +226,7 @@ class Api extends Controller {
$wechat = &load_wechat('User');
$userInfo = $wechat->getUserInfo($this->openid);
$userInfo['subscribe'] = intval($subscribe);
WechatService::setFansInfo($userInfo, $this->appid);
WechatService::setFansInfo($userInfo, $wechat->appid);
}
} else {
$data = ['subscribe' => '0', 'appid' => $this->appid, 'openid' => $this->openid];