Commit 2d3e1017 authored by 杨培's avatar 杨培

新增按uid更新用户金币数的接口(旧),此接口在成长体系完成后将统一使用新接口。

parent a7570ed6
...@@ -30,6 +30,7 @@ class User extends Client ...@@ -30,6 +30,7 @@ class User extends Client
* 获取金币 * 获取金币
* @param $uid * @param $uid
* @return mixed * @return mixed
* @deprecated 成长体系上线后统一使用新接口
*/ */
public static function getGoldCoin($uid) public static function getGoldCoin($uid)
{ {
...@@ -42,11 +43,25 @@ class User extends Client ...@@ -42,11 +43,25 @@ class User extends Client
* @param string $title 记录标题 例如 完工奖励 * @param string $title 记录标题 例如 完工奖励
* @param string $text 记录内容 例如 完成工单奖励金钱+<span>5<span> * @param string $text 记录内容 例如 完成工单奖励金钱+<span>5<span>
* @return mixed * @return mixed
* @deprecated 成长体系上线后统一使用新接口
*/ */
public static function updateGoldCoin($telephone,$num,$title,$text){ public static function updateGoldCoin($telephone,$num,$title,$text){
return self::call('user.updateGoldCoin', compact('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 * @param int $userId
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment