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
b1bb6f28
Commit
b1bb6f28
authored
Sep 11, 2017
by
夏彬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加接口以及更新demo
parent
70365ef4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
37 additions
and
11 deletions
+37
-11
bbs_user.php
example/bbs_user.php
+16
-0
User.php
src/bbs/User.php
+21
-11
No files found.
example/bbs_user.php
0 → 100644
View file @
b1bb6f28
<?php
/**
* Created by PhpStorm.
* User: xiabin
* Date: 11/09/2017
* Time: 11:54 AM
*/
use
internalApi\bbs\User
;
require
__DIR__
.
'/_init.php'
;
User
::
setDebug
(
true
);
$uid
=
42
;
$data
=
User
::
getGoldCoin
(
$uid
);
print_r
(
$data
);
\ No newline at end of file
src/bbs/User.php
View file @
b1bb6f28
...
...
@@ -13,16 +13,26 @@ use internalApi\base\Client;
class
User
extends
Client
{
/**
* 同步更新用户基本信息
*
* @param int $uid
* @param array $data
* @return bool
*/
public
static
function
updateSync
(
$uid
,
$data
)
{
return
self
::
call
(
'user.updateSync'
,
compact
(
'uid'
,
'data'
));
}
/**
* 同步更新用户基本信息
*
* @param int $uid
* @param array $data
* @return bool
*/
public
static
function
updateSync
(
$uid
,
$data
)
{
return
self
::
call
(
'user.updateSync'
,
compact
(
'uid'
,
'data'
));
}
/**
* 获取金币
* @param $uid
* @return mixed
*/
public
static
function
getGoldCoin
(
$uid
)
{
return
self
::
call
(
'user.getGoldCoin'
,
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