Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
数据应用
ThinkLibrary
提交
6aa863c8
T
ThinkLibrary
项目概览
数据应用
/
ThinkLibrary
通知
2
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
代码片段
项目成员
Pages
T
ThinkLibrary
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
6aa863c8
编写于
9月 22, 2020
作者:
李光春
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
- 拼多多接口增加
- 优化京东接口
上级
fbfd3756
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
32 addition
and
17 deletion
+32
-17
CHANGELOG.md
CHANGELOG.md
+4
-0
src/common.php
src/common.php
+1
-1
src/service/jd/UnionService.php
src/service/jd/UnionService.php
+16
-16
src/service/pinduoduo/JinBaoService.php
src/service/pinduoduo/JinBaoService.php
+11
-0
未找到文件。
CHANGELOG.md
浏览文件 @
6aa863c8
## v6.0.116 / 2020-09-22
-
拼多多接口增加
-
优化京东接口
## v6.0.115 / 2020-09-21
-
微信小程序接口增加直播
...
...
src/common.php
浏览文件 @
6aa863c8
...
...
@@ -25,7 +25,7 @@ use DtApp\ThinkLibrary\service\SystemService;
/**
* 定义当前版本
*/
const
VERSION
=
'6.0.11
5
'
;
const
VERSION
=
'6.0.11
6
'
;
if
(
!
function_exists
(
'get_ip_info'
))
{
/**
...
...
src/service/jd/UnionService.php
浏览文件 @
6aa863c8
...
...
@@ -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
;
...
...
src/service/pinduoduo/JinBaoService.php
浏览文件 @
6aa863c8
...
...
@@ -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.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录