|
|
@ -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, |
|
|
|
|
|
|
|
]); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|