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
6e80b26e
Commit
6e80b26e
authored
Jun 28, 2017
by
杨培
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
实例参考
其它调整
parent
04db65a1
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
59 additions
and
4 deletions
+59
-4
_init.php
example/_init.php
+10
-0
code_medal.php
example/code_medal.php
+16
-0
ucenter_basic.php
example/ucenter_basic.php
+1
-3
Client.php
src/base/Client.php
+0
-1
client_config_dev.php
src/client_config_dev.php
+5
-0
Medal.php
src/code/Medal.php
+27
-0
No files found.
example/_init.php
0 → 100644
View file @
6e80b26e
<?php
/**
* Created by PhpStorm.
* User: pader
* Date: 2017/6/28
* Time: 13:51
*/
require
__DIR__
.
'/../src/autoload.php'
;
\internalApi\base\Client
::
config
(
include
__DIR__
.
'/../src/client_config_dev.php'
);
\ No newline at end of file
example/code_medal.php
0 → 100644
View file @
6e80b26e
<?php
/**
* Created by PhpStorm.
* User: pader
* Date: 2017/6/28
* Time: 13:51
*/
use
internalApi\code\Medal
;
require
__DIR__
.
'/_init.php'
;
Medal
::
setDebug
(
true
);
$ret
=
Medal
::
getUserMedals
(
10
);
print_r
(
$ret
);
\ No newline at end of file
example/ucenter_basic.php
View file @
6e80b26e
...
...
@@ -8,9 +8,7 @@
use
internalApi\ucenter\Member
;
require
__DIR__
.
'/../src/autoload.php'
;
\internalApi\base\Client
::
config
(
include
__DIR__
.
'/../src/client_config_dev.php'
);
require
__DIR__
.
'/_init.php'
;
$info
=
Member
::
getMemberInfo
(
12
);
print_r
(
$info
);
\ No newline at end of file
src/base/Client.php
View file @
6e80b26e
...
...
@@ -167,7 +167,6 @@ class Client
echo
'<pre>'
;
echo
'=====info====='
.
"
\r\n
"
;
print_r
(
$httpInfo
);
echo
$url
;
echo
"
\r\n
=====post data======
\r\n
"
;
var_dump
(
$post
);
...
...
src/client_config_dev.php
View file @
6e80b26e
...
...
@@ -16,5 +16,10 @@ return [
'apiUrl'
=>
'http://u.yunya.com/test/api-server'
,
'clientId'
=>
'common'
,
'clientSecret'
=>
'Kuy2dVHKRWKAFRXX2l6k'
],
'code'
=>
[
'apiUrl'
=>
'http://dev.wxherr.com/site/api-server'
,
'clientId'
=>
'common'
,
'clientSecret'
=>
'1BO1WQwnpjc2GfjzrOuq'
]
];
\ No newline at end of file
src/code/Medal.php
0 → 100644
View file @
6e80b26e
<?php
namespace
internalApi\code
;
use
internalApi\base\Client
;
/**
* Created by PhpStorm.
* User: pader
* Date: 2017/6/28
* Time: 12:00
*/
class
Medal
extends
Client
{
/**
* 获取扳手快查用户获得的勋章列表
*
* @param $uid
* @return array
*/
public
static
function
getUserMedals
(
$uid
)
{
return
self
::
call
(
'medal.getUserMedals'
,
compact
(
'uid'
));
}
}
\ No newline at end of file
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