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
4e33059a
Commit
4e33059a
authored
Sep 14, 2018
by
wangjj
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
parents
4e797991
9cad81b4
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
1 deletion
+18
-1
bbs_user.php
example/bbs_user.php
+4
-1
User.php
src/bbs/User.php
+14
-0
No files found.
example/bbs_user.php
View file @
4e33059a
...
@@ -11,5 +11,8 @@ use internalApi\bbs\User;
...
@@ -11,5 +11,8 @@ use internalApi\bbs\User;
require
__DIR__
.
'/_init.php'
;
require
__DIR__
.
'/_init.php'
;
User
::
setDebug
(
true
);
User
::
setDebug
(
true
);
$data
=
User
::
canAddGoldCoin
(
13739230723
);
$data
=
User
::
getMemberCount
(
12
);
//$data = User::canAddGoldCoin(13739230723);
print_r
(
$data
);
print_r
(
$data
);
\ No newline at end of file
src/bbs/User.php
View file @
4e33059a
...
@@ -56,4 +56,18 @@ class User extends Client
...
@@ -56,4 +56,18 @@ class User extends Client
{
{
return
self
::
call
(
'user.getMonthSignList'
,
compact
(
'userId'
));
return
self
::
call
(
'user.getMonthSignList'
,
compact
(
'userId'
));
}
}
/**
* 获取指定用户的统计数据
*
* @param int $uid
* @return array
* @throws \internalApi\base\ApiException
* @throws \internalApi\base\ClientException
*/
public
static
function
getMemberCount
(
$uid
)
{
return
self
::
call
(
'user.getMemberCount'
,
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