diff --git a/application/wechat/controller/Api.php b/application/wechat/controller/Api.php index 576d15370..6d5f979d3 100644 --- a/application/wechat/controller/Api.php +++ b/application/wechat/controller/Api.php @@ -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];