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
0b53f27e
Commit
0b53f27e
authored
Dec 06, 2019
by
杨培
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
快递查询服务调用 Hyperf 微服务
parent
cbef3fb7
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
6 deletions
+16
-6
ucenter_basic.php
example/ucenter_basic.php
+11
-3
client_config_dev.php
src/client_config_dev.php
+1
-1
Express.php
src/ucenter/Express.php
+4
-2
No files found.
example/ucenter_basic.php
View file @
0b53f27e
...
@@ -6,6 +6,7 @@
...
@@ -6,6 +6,7 @@
* Time: 10:23
* Time: 10:23
*/
*/
use
internalApi\ucenter\Express
;
use
internalApi\ucenter\Member
;
use
internalApi\ucenter\Member
;
require
__DIR__
.
'/_init.php'
;
require
__DIR__
.
'/_init.php'
;
...
@@ -28,6 +29,13 @@ Member::setDebug();
...
@@ -28,6 +29,13 @@ Member::setDebug();
//print_r($info);
//print_r($info);
//$rt = Member::invol('hello world, blabl blasdfjiasdpjf -saduf0 asdupf0ashd- sajdgm 0df9n2i-df0m9gp-dfs0kgi-90skmjikg-0jsk-fkgdfg');
//$rt = Member::invol('hello world, blabl blasdfjiasdpjf -saduf0 asdupf0ashd- sajdgm 0df9n2i-df0m9gp-dfs0kgi-90skmjikg-0jsk-fkgdfg');
$rt
=
Member
::
retrive
();
//print_r($rt);
print_r
(
$rt
);
//$rt = Member::retrive();
//print_r($rt);
$a
=
microtime
(
true
);
//$ret = Express::query('4302644653361', 'yd');
$ret
=
Express
::
company
();
$t
=
bcsub
(
microtime
(
true
),
$a
,
4
);
print_r
(
$ret
);
echo
$t
;
src/client_config_dev.php
View file @
0b53f27e
...
@@ -11,7 +11,7 @@ return [
...
@@ -11,7 +11,7 @@ return [
'apiUrl'
=>
'http://u.yunya.com/api/server'
,
'apiUrl'
=>
'http://u.yunya.com/api/server'
,
'clientId'
=>
'common'
,
'clientId'
=>
'common'
,
'clientSecret'
=>
'Kuy2dVHKRWKAFRXX2l6k'
,
'clientSecret'
=>
'Kuy2dVHKRWKAFRXX2l6k'
,
'rpcServer'
=>
'1
92.168.99.18
1:9503'
'rpcServer'
=>
'1
27.0.0.
1:9503'
],
],
'xue'
=>
[
'xue'
=>
[
'apiUrl'
=>
'http://xue.yunya.com/api'
,
'apiUrl'
=>
'http://xue.yunya.com/api'
,
...
...
src/ucenter/Express.php
View file @
0b53f27e
...
@@ -27,7 +27,8 @@ class Express extends Client
...
@@ -27,7 +27,8 @@ class Express extends Client
*/
*/
public
static
function
query
(
$nu
,
$com
)
public
static
function
query
(
$nu
,
$com
)
{
{
return
self
::
call
(
'express.query'
,
compact
(
'nu'
,
'com'
));
//return self::call('express.query', compact('nu', 'com'));
return
self
::
invoke
(
'/express/query'
,
func_get_args
());
}
}
/**
/**
...
@@ -38,7 +39,8 @@ class Express extends Client
...
@@ -38,7 +39,8 @@ class Express extends Client
*/
*/
public
static
function
company
(
$all
=
false
)
public
static
function
company
(
$all
=
false
)
{
{
return
self
::
call
(
'express.company'
,
compact
(
'all'
));
//return self::call('express.company', compact('all'));
return
self
::
invoke
(
'/express/company'
,
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