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
2d3e1017
Commit
2d3e1017
authored
Dec 12, 2018
by
杨培
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增按uid更新用户金币数的接口(旧),此接口在成长体系完成后将统一使用新接口。
parent
a7570ed6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
0 deletions
+15
-0
User.php
src/bbs/User.php
+15
-0
No files found.
src/bbs/User.php
View file @
2d3e1017
...
...
@@ -30,6 +30,7 @@ class User extends Client
* 获取金币
* @param $uid
* @return mixed
* @deprecated 成长体系上线后统一使用新接口
*/
public
static
function
getGoldCoin
(
$uid
)
{
...
...
@@ -42,11 +43,25 @@ class User extends Client
* @param string $title 记录标题 例如 完工奖励
* @param string $text 记录内容 例如 完成工单奖励金钱+<span>5<span>
* @return mixed
* @deprecated 成长体系上线后统一使用新接口
*/
public
static
function
updateGoldCoin
(
$telephone
,
$num
,
$title
,
$text
){
return
self
::
call
(
'user.updateGoldCoin'
,
compact
(
'telephone'
,
'num'
,
'title'
,
'text'
));
}
/**
* 根据用户UID更新金币
* @param int $uid 用户UID
* @param int $num 加减的数量 +-num
* @param string $title 记录标题 例如 完工奖励
* @param string $text 记录内容 例如 完成工单奖励金钱+<span>5<span>
* @return void
* @deprecated 成长体系上线后统一使用新接口
*/
public
static
function
updateGoldCoinByUid
(
$uid
,
$num
,
$title
,
$text
){
return
self
::
call
(
'user.updateGoldCoinByUid'
,
compact
(
'uid'
,
'num'
,
'title'
,
'text'
));
}
/**
* 获取签到的日期
* @param int $userId
...
...
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