From 91a43e6c87b9e9d1336fa63f28da41b97adf8095 Mon Sep 17 00:00:00 2001 From: wuliangbo Date: Mon, 8 Aug 2022 17:27:31 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E8=8E=B7=E5=8F=96=E5=94=AE?= =?UTF-8?q?=E5=90=8E=E8=AF=A6=E6=83=85=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 | 27 ++++++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) diff --git a/src/MiniProgram/Shop/Aftersale/Client.php b/src/MiniProgram/Shop/Aftersale/Client.php index 5d29d3c..67f3ad3 100644 --- a/src/MiniProgram/Shop/Aftersale/Client.php +++ b/src/MiniProgram/Shop/Aftersale/Client.php @@ -38,6 +38,19 @@ class Client extends BaseClient return $this->httpPostJson('shop/ecaftersale/get', $order); } + /** + * 获取售后单详情 + * + * @param array $order + * @return array|\EasyWeChat\Kernel\Support\Collection|object|\Psr\Http\Message\ResponseInterface|string + * @throws \EasyWeChat\Kernel\Exceptions\InvalidConfigException + * @throws \GuzzleHttp\Exception\GuzzleException + */ + public function getDetails(array $order) + { + return $this->httpPostJson('shop/aftersale/get', $order); + } + /** * 更新售后 * @@ -92,7 +105,19 @@ class Client extends BaseClient } /** - * 商家同意退款|商家同意退货 + * 商家同意退货 + * @param array $data + * @return array|\EasyWeChat\Kernel\Support\Collection|object|\Psr\Http\Message\ResponseInterface|string + * @throws \EasyWeChat\Kernel\Exceptions\InvalidConfigException + * @throws \GuzzleHttp\Exception\GuzzleException + */ + public function acceptReturn(array $data) + { + return $this->httpPostJson('shop/ecaftersale/acceptreturn', $data); + } + + /** + * 商家同意退款 * * @param array $data * @return array|\EasyWeChat\Kernel\Support\Collection|object|\Psr\Http\Message\ResponseInterface|string