From 8603c12019e84c7141739469483ed380b712f123 Mon Sep 17 00:00:00 2001 From: wuliangbo Date: Mon, 29 Aug 2022 11:50:21 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=8E=A8=E5=B9=BF=E5=91=98?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/MiniProgram/Shop/Aftersale/Client.php | 6 +++--- src/MiniProgram/Shop/Basic/Client.php | 16 ++++++++++++++++ 2 files changed, 19 insertions(+), 3 deletions(-) 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 + ]); + } }