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
5708e46d
Commit
5708e46d
authored
Aug 23, 2018
by
wangjj
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加用户是否可以添加接口
parent
dc5f2212
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
2 deletions
+10
-2
bbs_user.php
example/bbs_user.php
+1
-2
User.php
src/bbs/User.php
+9
-0
No files found.
example/bbs_user.php
View file @
5708e46d
...
@@ -11,6 +11,5 @@ use internalApi\bbs\User;
...
@@ -11,6 +11,5 @@ use internalApi\bbs\User;
require
__DIR__
.
'/_init.php'
;
require
__DIR__
.
'/_init.php'
;
User
::
setDebug
(
true
);
User
::
setDebug
(
true
);
$uid
=
42
;
$data
=
User
::
canAddGoldCoin
(
13739230723
);
$data
=
User
::
getMonthSignList
(
582
);
print_r
(
$data
);
print_r
(
$data
);
\ No newline at end of file
src/bbs/User.php
View file @
5708e46d
...
@@ -57,4 +57,13 @@ class User extends Client
...
@@ -57,4 +57,13 @@ class User extends Client
return
self
::
call
(
'user.getMonthSignList'
,
compact
(
'userId'
));
return
self
::
call
(
'user.getMonthSignList'
,
compact
(
'userId'
));
}
}
/**
* 当天是否能够添加金币
* @param int $telephone
* @return mixed
*/
public
static
function
canAddGoldCoin
(
$telephone
)
{
return
self
::
call
(
'user.canAddGoldCoin'
,
compact
(
'telephone'
));
}
}
}
\ 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