Browse Source

增加推广员接口

master v1.0.9
wuliangbo 2 years ago
parent
commit
8603c12019
  1. 6
      src/MiniProgram/Shop/Aftersale/Client.php
  2. 16
      src/MiniProgram/Shop/Basic/Client.php

6
src/MiniProgram/Shop/Aftersale/Client.php

@ -22,7 +22,7 @@ class Client extends BaseClient @@ -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 @@ -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 @@ -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));
}
/**

16
src/MiniProgram/Shop/Basic/Client.php

@ -107,4 +107,20 @@ class Client extends BaseClient @@ -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
]);
}
}

Loading…
Cancel
Save