From 1bc81c1ddcbf6e7daeb348ad71f24316960309d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E5=85=89=E6=98=A5?= Date: Tue, 3 Nov 2020 15:29:44 +0800 Subject: [PATCH] =?UTF-8?q?-=20=E4=BA=AC=E4=B8=9C=E8=81=94=E7=9B=9F?= =?UTF-8?q?=E3=80=81=E6=B7=98=E5=AE=9D=E8=81=94=E7=9B=9F=E3=80=81=E6=8B=BC?= =?UTF-8?q?=E5=A4=9A=E5=A4=9A=E8=81=94=E7=9B=9F=E6=94=AF=E6=8C=81=E8=87=AA?= =?UTF-8?q?=E5=AE=9A=E4=B9=89=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 3 +++ src/common.php | 2 +- src/service/jd/UnionService.php | 11 +++++++++++ src/service/pinduoduo/JinBaoService.php | 12 ++++++++++++ src/service/taobao/TbkService.php | 11 +++++++++++ 5 files changed, 38 insertions(+), 1 deletion(-) 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