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

Loading…
Cancel
Save