diff --git a/src/MiniProgram/Shop/Aftersale/Client.php b/src/MiniProgram/Shop/Aftersale/Client.php index d89e514..9ca7a60 100644 --- a/src/MiniProgram/Shop/Aftersale/Client.php +++ b/src/MiniProgram/Shop/Aftersale/Client.php @@ -22,7 +22,7 @@ class Client extends BaseClient */ public function add(array $aftersale) { - return $this->httpPostJson('shop/aftersale/add', $aftersale); + return $this->httpPostJson('shop/ecaftersale/add', $aftersale); } /** @@ -35,7 +35,7 @@ class Client extends BaseClient */ public function get(array $order) { - return $this->httpPostJson('shop/aftersale/get', $order); + return $this->httpPostJson('shop/ecaftersale/get', $order); } /** @@ -49,7 +49,7 @@ class Client extends BaseClient */ public function update(array $order, array $aftersale = []) { - return $this->httpPostJson('shop/aftersale/update', array_merge($order, $aftersale)); + return $this->httpPostJson('shop/ecaftersale/update', array_merge($order, $aftersale)); } /** diff --git a/src/MiniProgram/Shop/Basic/Client.php b/src/MiniProgram/Shop/Basic/Client.php index b2cf95f..c3b4b67 100644 --- a/src/MiniProgram/Shop/Basic/Client.php +++ b/src/MiniProgram/Shop/Basic/Client.php @@ -107,4 +107,20 @@ class Client extends BaseClient 'req_type' => $reqType ]); } + + /** + * 获取推广员列表 + * @param int $page + * @param int $pageSize + * @return array|\EasyWeChat\Kernel\Support\Collection|object|\Psr\Http\Message\ResponseInterface|string + * @throws \EasyWeChat\Kernel\Exceptions\InvalidConfigException + * @throws \GuzzleHttp\Exception\GuzzleException + */ + public function promoterList(int $page = 1, int $pageSize = 20) + { + return $this->httpPostJson('shop/promoter/list', [ + 'page' => $page, + 'page_size' => $pageSize + ]); + } }