Browse Source

修改更新商家接口传参

master v1.0.6
wuliangbo 2 years ago
parent
commit
6c31390413
  1. 10
      src/MiniProgram/Shop/Account/Client.php

10
src/MiniProgram/Shop/Account/Client.php

@ -39,18 +39,14 @@ class Client extends BaseClient @@ -39,18 +39,14 @@ class Client extends BaseClient
/**
* 更新商家信息
*
* @param string $path 小程序path
* @param string $phone 客服联系方式
* @param array $param
* @return array|\EasyWeChat\Kernel\Support\Collection|object|\Psr\Http\Message\ResponseInterface|string
* @throws \EasyWeChat\Kernel\Exceptions\InvalidConfigException
* @throws \GuzzleHttp\Exception\GuzzleException
*/
public function updateInfo(string $path = '', string $phone = '')
public function updateInfo(array $param)
{
return $this->httpPostJson('shop/account/update_info', [
'service_agent_path' => $path,
'service_agent_phone' => $phone,
]);
return $this->httpPostJson('shop/account/update_info', $param);
}
/**

Loading…
Cancel
Save