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
615ebc98
Commit
615ebc98
authored
Jun 05, 2018
by
wangjj
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
获取签到日期接口
parent
98152b7a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
1 deletion
+11
-1
bbs_user.php
example/bbs_user.php
+1
-1
User.php
src/bbs/User.php
+10
-0
No files found.
example/bbs_user.php
View file @
615ebc98
...
@@ -12,5 +12,5 @@ require __DIR__.'/_init.php';
...
@@ -12,5 +12,5 @@ require __DIR__.'/_init.php';
User
::
setDebug
(
true
);
User
::
setDebug
(
true
);
$uid
=
42
;
$uid
=
42
;
$data
=
User
::
updateGoldCoin
(
'18503078897'
,
5
,
'完工奖励'
,
'完工奖励+5'
);
$data
=
User
::
getMonthSignList
(
582
);
print_r
(
$data
);
print_r
(
$data
);
\ No newline at end of file
src/bbs/User.php
View file @
615ebc98
...
@@ -47,4 +47,14 @@ class User extends Client
...
@@ -47,4 +47,14 @@ class User extends Client
return
self
::
call
(
'user.updateGoldCoin'
,
compact
(
'telephone'
,
'num'
,
'title'
,
'text'
));
return
self
::
call
(
'user.updateGoldCoin'
,
compact
(
'telephone'
,
'num'
,
'title'
,
'text'
));
}
}
/**
* 获取签到的日期
* @param int $userId
* @return mixed
*/
public
static
function
getMonthSignList
(
$userId
)
{
return
self
::
call
(
'user.getMonthSignList'
,
compact
(
'userId'
));
}
}
}
\ 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