提交 6aa863c8 编写于 作者: 李光春's avatar 李光春

- 拼多多接口增加

- 优化京东接口
上级 fbfd3756
## v6.0.116 / 2020-09-22
- 拼多多接口增加
- 优化京东接口
## v6.0.115 / 2020-09-21
- 微信小程序接口增加直播
......
......@@ -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')) {
/**
......
......@@ -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;
......
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册