[更新]修正粉丝标签接口参数名称

This commit is contained in:
Anyon 2018-03-26 10:31:05 +08:00
parent 254d9a39c1
commit f9cad0f222

View File

@ -90,7 +90,7 @@ class Tags extends BasicWeChat
{
$url = 'https://api.weixin.qq.com/cgi-bin/tags/members/batchtagging?access_token=ACCESS_TOKEN';
$this->registerApi($url, __FUNCTION__, func_get_args());
return $this->httpPostForJson($url, ['openid_list' => $openids, $tagId]);
return $this->httpPostForJson($url, ['openid_list' => $openids, 'tag_id' => $tagId]);
}
/**
@ -105,7 +105,7 @@ class Tags extends BasicWeChat
{
$url = 'https://api.weixin.qq.com/cgi-bin/tags/members/batchuntagging?access_token=ACCESS_TOKEN';
$this->registerApi($url, __FUNCTION__, func_get_args());
return $this->httpPostForJson($url, ['openid_list' => $openids, $tagId]);
return $this->httpPostForJson($url, ['openid_list' => $openids, 'tag_id' => $tagId]);
}
/**