diff --git a/CHANGELOG.md b/CHANGELOG.md index 7ca73e2..a2d4d13 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +## v6.0.120 / 2020-11-03 +- 京东联盟、淘宝联盟、拼多多联盟支持自定义接口 + ## v6.0.119 / 2020-10-10 - 暂时指定phpoffice/phpspreadsheet的版本 diff --git a/src/common.php b/src/common.php index 0a709ad..0c0cfcd 100644 --- a/src/common.php +++ b/src/common.php @@ -25,7 +25,7 @@ use DtApp\ThinkLibrary\service\SystemService; /** * 定义当前版本 */ -const VERSION = '6.0.119'; +const VERSION = '6.0.120'; if (!function_exists('get_ip_info')) { /** diff --git a/src/service/jd/UnionService.php b/src/service/jd/UnionService.php index 1347987..144ca9a 100644 --- a/src/service/jd/UnionService.php +++ b/src/service/jd/UnionService.php @@ -323,6 +323,17 @@ class UnionService extends Service return $this; } + /** + * 自定义接口 + * @param string $method + * @return $this + */ + public function setMethod($method = ''): self + { + $this->method = $method; + return $this; + } + /** * 返回数组数据 * @return array|mixed diff --git a/src/service/pinduoduo/JinBaoService.php b/src/service/pinduoduo/JinBaoService.php index c65a3b7..f442833 100644 --- a/src/service/pinduoduo/JinBaoService.php +++ b/src/service/pinduoduo/JinBaoService.php @@ -475,6 +475,18 @@ class JinBaoService extends Service return $this; } + /** + * 自定义接口 + * @param string $type + * @return $this + */ + public function setMethod($type = ''): self + { + $this->type = $type; + return $this; + } + + /** * 返回数组数据 * @return array|mixed diff --git a/src/service/taobao/TbkService.php b/src/service/taobao/TbkService.php index f0a9149..2ba6644 100644 --- a/src/service/taobao/TbkService.php +++ b/src/service/taobao/TbkService.php @@ -838,6 +838,17 @@ class TbkService extends Service return $this; } + /** + * 自定义接口 + * @param string $method + * @return $this + */ + public function setMethod($method = ''): self + { + $this->method = $method; + return $this; + } + /** * 返回Array * @return array|mixed