Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
wxh_internal_api
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
杨培培
wxh_internal_api
Commits
33182f9c
Commit
33182f9c
authored
Apr 17, 2020
by
杨培
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增 Express::queryFull() 服务
parent
b73ae482
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
1 deletion
+18
-1
ucenter_basic.php
example/ucenter_basic.php
+1
-1
Express.php
src/ucenter/Express.php
+17
-0
No files found.
example/ucenter_basic.php
View file @
33182f9c
...
@@ -34,7 +34,7 @@ Member::setDebug();
...
@@ -34,7 +34,7 @@ Member::setDebug();
//print_r($rt);
//print_r($rt);
$a
=
microtime
(
true
);
$a
=
microtime
(
true
);
$ret
=
Express
::
query
(
'4302644653361'
,
'yd'
);
$ret
=
Express
::
query
Full
(
'4302644653361'
,
'yd'
);
//$ret = Express::company();
//$ret = Express::company();
$t
=
bcsub
(
microtime
(
true
),
$a
,
4
);
$t
=
bcsub
(
microtime
(
true
),
$a
,
4
);
print_r
(
$ret
);
print_r
(
$ret
);
...
...
src/ucenter/Express.php
View file @
33182f9c
...
@@ -31,6 +31,23 @@ class Express extends Client
...
@@ -31,6 +31,23 @@ class Express extends Client
return
self
::
invoke
(
'/express/query'
,
func_get_args
());
return
self
::
invoke
(
'/express/query'
,
func_get_args
());
}
}
/**
* 查询物流详情
*
* @param string $nu 快递单号
* @param string $com 公司内部快递公司代号
* @return array|string 成功返回状态与物流记录等数组,失败返回错误文本
* 返回的数组包含四个字段:
* state: 物流状态码
* state_name: 物流状态对应字符标记
* state_orig: 物流接口的原始状态码
* records: 物流记录详情
*/
public
static
function
queryFull
(
$nu
,
$com
)
{
return
self
::
invoke
(
'/express/queryFull'
,
func_get_args
());
}
/**
/**
* 获取支持的快递公司代码列表
* 获取支持的快递公司代码列表
*
*
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment