mirror of
https://gitee.com/zoujingli/WeChatDeveloper.git
synced 2025-04-06 03:58:03 +08:00
[更新]修正添加客服去除密码
This commit is contained in:
parent
327b841c62
commit
733e108469
@ -28,14 +28,13 @@ class Custom extends BasicWeChat
|
|||||||
* 添加客服帐号
|
* 添加客服帐号
|
||||||
* @param string $kf_account 客服账号
|
* @param string $kf_account 客服账号
|
||||||
* @param string $nickname 客服昵称
|
* @param string $nickname 客服昵称
|
||||||
* @param string $password 账号密码
|
|
||||||
* @return array
|
* @return array
|
||||||
* @throws Exceptions\InvalidResponseException
|
* @throws Exceptions\InvalidResponseException
|
||||||
* @throws Exceptions\LocalCacheException
|
* @throws Exceptions\LocalCacheException
|
||||||
*/
|
*/
|
||||||
public function addAccount($kf_account, $nickname, $password)
|
public function addAccount($kf_account, $nickname)
|
||||||
{
|
{
|
||||||
$data = ['kf_account' => $kf_account, 'nickname' => $nickname, 'password' => $password];
|
$data = ['kf_account' => $kf_account, 'nickname' => $nickname];
|
||||||
$url = "https://api.weixin.qq.com/customservice/kfaccount/add?access_token=ACCESS_TOKEN";
|
$url = "https://api.weixin.qq.com/customservice/kfaccount/add?access_token=ACCESS_TOKEN";
|
||||||
$this->registerApi($url, __FUNCTION__, func_get_args());
|
$this->registerApi($url, __FUNCTION__, func_get_args());
|
||||||
return $this->httpPostForJson($url, $data);
|
return $this->httpPostForJson($url, $data);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user