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
70a0059b
Commit
70a0059b
authored
Jun 28, 2017
by
杨培
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
加入一些例子
parent
50b0d073
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
37 additions
and
1 deletion
+37
-1
ucenter_basic.php
example/ucenter_basic.php
+16
-0
client_config.exmaple.php
src/client_config.exmaple.php
+1
-1
client_config_dev.php
src/client_config_dev.php
+20
-0
No files found.
example/ucenter_basic.php
0 → 100644
View file @
70a0059b
<?php
/**
* Created by PhpStorm.
* User: pader
* Date: 2017/6/28
* Time: 10:23
*/
use
internalApi\ucenter\Member
;
require
__DIR__
.
'/../src/autoload.php'
;
\internalApi\base\Client
::
config
(
include
__DIR__
.
'/../src/client_config_dev.php'
);
$info
=
Member
::
getMemberInfo
(
12
);
print_r
(
$info
);
\ No newline at end of file
src/client_config.exmaple.php
View file @
70a0059b
...
@@ -9,7 +9,7 @@ use internalApi\ucenter\Member;
...
@@ -9,7 +9,7 @@ use internalApi\ucenter\Member;
//配置的保存位置根据项目决定,只需最终调用 Client::config() 传入即可
//配置的保存位置根据项目决定,只需最终调用 Client::config() 传入即可
$internalApiClientConfig
=
[
$internalApiClientConfig
=
[
'ucenter'
=>
[
'ucenter'
=>
[
'apiUrl'
=>
'http://u.yunya.com/
test/api-
server'
,
'apiUrl'
=>
'http://u.yunya.com/
api/
server'
,
'clientId'
=>
'common'
,
'clientId'
=>
'common'
,
'clientSecret'
=>
'Kuy2dVHKRWKAFRXX2l6k'
'clientSecret'
=>
'Kuy2dVHKRWKAFRXX2l6k'
],
],
...
...
src/client_config_dev.php
0 → 100644
View file @
70a0059b
<?php
/**
* Created by PhpStorm.
* User: pader
* Date: 2017/6/28
* Time: 10:23
*/
return
[
'ucenter'
=>
[
'apiUrl'
=>
'http://u.yunya.com/api/server'
,
'clientId'
=>
'common'
,
'clientSecret'
=>
'Kuy2dVHKRWKAFRXX2l6k'
],
'xue'
=>
[
'apiUrl'
=>
'http://u.yunya.com/test/api-server'
,
'clientId'
=>
'common'
,
'clientSecret'
=>
'Kuy2dVHKRWKAFRXX2l6k'
]
];
\ 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