From 6aa863c8578406a8d30b889abb44da82eea18b79 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E5=85=89=E6=98=A5?= Date: Tue, 22 Sep 2020 16:53:18 +0800 Subject: [PATCH] =?UTF-8?q?-=20=E6=8B=BC=E5=A4=9A=E5=A4=9A=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3=E5=A2=9E=E5=8A=A0=20-=20=E4=BC=98=E5=8C=96=E4=BA=AC?= =?UTF-8?q?=E4=B8=9C=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 4 ++++ src/common.php | 2 +- src/service/jd/UnionService.php | 32 ++++++++++++------------- src/service/pinduoduo/JinBaoService.php | 11 +++++++++ 4 files changed, 32 insertions(+), 17 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index bba6bb6..8bcd2a8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## v6.0.116 / 2020-09-22 +- 拼多多接口增加 +- 优化京东接口 + ## v6.0.115 / 2020-09-21 - 微信小程序接口增加直播 diff --git a/src/common.php b/src/common.php index bf39ecd..e0e82eb 100644 --- a/src/common.php +++ b/src/common.php @@ -25,7 +25,7 @@ use DtApp\ThinkLibrary\service\SystemService; /** * 定义当前版本 */ -const VERSION = '6.0.115'; +const VERSION = '6.0.116'; if (!function_exists('get_ip_info')) { /** diff --git a/src/service/jd/UnionService.php b/src/service/jd/UnionService.php index 456330b..1347987 100644 --- a/src/service/jd/UnionService.php +++ b/src/service/jd/UnionService.php @@ -96,7 +96,7 @@ class UnionService extends Service * @param string $appKey * @return $this */ - public function appKey(string $appKey) + public function appKey(string $appKey): self { $this->app_key = $appKey; return $this; @@ -118,7 +118,7 @@ class UnionService extends Service * @param string $accessToken * @return $this */ - public function accessToken(string $accessToken) + public function accessToken(string $accessToken): self { $this->access_token = $accessToken; return $this; @@ -168,7 +168,7 @@ class UnionService extends Service * https://union.jd.com/openplatform/api/10421 * @return $this */ - public function promotionCommonGet() + public function promotionCommonGet(): self { $this->method = 'jd.union.open.promotion.common.get'; return $this; @@ -179,7 +179,7 @@ class UnionService extends Service * https://union.jd.com/openplatform/api/10424 * @return $this */ - public function promotionBySubUnionIdGet() + public function promotionBySubUnionIdGet(): self { $this->method = 'jd.union.open.promotion.bysubunionid.get'; return $this; @@ -190,7 +190,7 @@ class UnionService extends Service * https://union.jd.com/openplatform/api/10425 * @return $this */ - public function promotionByUnionIdGet() + public function promotionByUnionIdGet(): self { $this->method = 'jd.union.open.promotion.byunionid.get'; return $this; @@ -201,7 +201,7 @@ class UnionService extends Service * https://union.jd.com/openplatform/api/12707 * @return $this */ - public function orderRowQuery() + public function orderRowQuery(): self { $this->method = 'jd.union.open.order.row.query'; return $this; @@ -212,7 +212,7 @@ class UnionService extends Service * https://union.jd.com/openplatform/api/11781 * @return $this */ - public function orderBonusQuery() + public function orderBonusQuery(): self { $this->method = 'jd.union.open.order.bonus.query'; return $this; @@ -223,7 +223,7 @@ class UnionService extends Service * https://union.jd.com/openplatform/api/10429 * @return $this */ - public function positionCreate() + public function positionCreate(): self { $this->method = 'jd.union.open.position.create'; return $this; @@ -234,7 +234,7 @@ class UnionService extends Service * https://union.jd.com/openplatform/api/10428 * @return $this */ - public function positionQuery() + public function positionQuery(): self { $this->method = 'jd.union.open.position.query'; return $this; @@ -245,7 +245,7 @@ class UnionService extends Service * https://union.jd.com/openplatform/api/10430 * @return $this */ - public function userPidGet() + public function userPidGet(): self { $this->method = 'jd.union.open.user.pid.get'; return $this; @@ -256,7 +256,7 @@ class UnionService extends Service * https://union.jd.com/openplatform/api/10421 * @return $this */ - public function goodsQuery() + public function goodsQuery(): self { $this->method = 'jd.union.open.goods.query'; return $this; @@ -267,7 +267,7 @@ class UnionService extends Service * https://union.jd.com/openplatform/api/10417 * @return $this */ - public function goodsJIngFenQuery() + public function goodsJIngFenQuery(): self { if (!isset($this->param['pageIndex'])) { $this->param['pageIndex'] = 1; @@ -284,7 +284,7 @@ class UnionService extends Service * https://union.jd.com/openplatform/api/10422 * @return $this */ - public function goodsPromotionGoodsInfoQuery() + public function goodsPromotionGoodsInfoQuery(): self { $this->method = 'jd.union.open.goods.promotiongoodsinfo.query'; return $this; @@ -295,7 +295,7 @@ class UnionService extends Service * https://union.jd.com/openplatform/api/12246 * @return $this */ - public function couponGiftGet() + public function couponGiftGet(): self { $this->method = 'jd.union.open.coupon.gift.get'; return $this; @@ -306,7 +306,7 @@ class UnionService extends Service * https://union.jd.com/openplatform/api/12240 * @return $this */ - public function couponGiftStop() + public function couponGiftStop(): self { $this->method = 'jd.union.open.coupon.gift.stop'; return $this; @@ -317,7 +317,7 @@ class UnionService extends Service * https://union.jd.com/openplatform/api/12248 * @return $this */ - public function statisticsGifTCouponQuery() + public function statisticsGifTCouponQuery(): self { $this->method = 'jd.union.open.statistics.giftcoupon.query'; return $this; diff --git a/src/service/pinduoduo/JinBaoService.php b/src/service/pinduoduo/JinBaoService.php index d72e252..c65a3b7 100644 --- a/src/service/pinduoduo/JinBaoService.php +++ b/src/service/pinduoduo/JinBaoService.php @@ -464,6 +464,17 @@ class JinBaoService extends Service return $this; } + /** + * 查询商品标签列表 + * https://open.pinduoduo.com/application/document/api?id=pdd.goods.opt.get + * @return $this + */ + public function goodsOptGet(): self + { + $this->type = 'pdd.goods.opt.get'; + return $this; + } + /** * 返回数组数据 * @return array|mixed