diff --git a/CHANGELOG.md b/CHANGELOG.md index bba6bb66385e6705874c4ad242c6ac17e61083eb..8bcd2a84592e6f6f7aaf75efc00dcea7150a970b 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 bf39ecd3aae9a10fca684c21fa4fb2117373ac3d..e0e82eb8ecde0f6b006a84f4a2eb12db72d00bae 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 456330b97efab9cd3424ff12c24a4fe9204530b7..13479870d9017cabb406452ffc2dfbe949669f5e 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 d72e252136073a012ee6dc23820ae4e9606e6bbe..c65a3b7e97aa6743e86776cea17fcab5e7d378a6 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