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
ee8b1cbc
Commit
ee8b1cbc
authored
Apr 16, 2018
by
zcg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
快递服务封装
parent
3002f790
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
66 additions
and
0 deletions
+66
-0
bbs_express.php
example/bbs_express.php
+20
-0
Express.php
src/ucenter/Express.php
+46
-0
No files found.
example/bbs_express.php
0 → 100644
View file @
ee8b1cbc
<?php
/**
* Created by PhpStorm.
* User: pader
* Date: 2017/6/28
* Time: 10:23
*/
use
internalApi\ucenter\Express
;
require
__DIR__
.
'/_init.php'
;
//Express::setDebug();
$info
=
Express
::
query
(
'70191547363252'
,
'huitongkuaidi'
);
// $info = Member::getInfoByMobile('15395081586');
//$info = Member::getSyncByMobile('13000000002');
//$info = Member::getSyncByUid(514);
print_r
(
$info
);
src/ucenter/Express.php
0 → 100644
View file @
ee8b1cbc
<?php
/**
* Created by PhpStorm.
* User: pader
* Date: 2017/6/30
* Time: 15:08
*/
namespace
internalApi\ucenter
;
use
internalApi\base\Client
;
/**
* 用户中心消息服务
*
* @package internalApi\ucenter
*/
class
Express
extends
Client
{
/**
* 获取物流信息
*
* @param string $nu 快递单号
* @param string $com 快递公司代码
* @return array
*/
public
static
function
query
(
$nu
,
$com
)
{
return
self
::
call
(
'express.query'
,
compact
(
'nu'
,
'com'
));
}
/**
* 获取支持的快递公司代码列表
*
* @param boolean $all false:只获取常用的,true:获取所有快递公司
* @return array
*/
public
static
function
company
(
$all
=
false
)
{
return
self
::
call
(
'express.company'
,
compact
(
'all'
));
}
}
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