|
@@ -85,7 +85,7 @@ class Gift extends Api
|
|
|
$this->success("获取成功!", $list);
|
|
|
}
|
|
|
|
|
|
- public function giveGiftToYou() {
|
|
|
+ public function givefift_typing() {
|
|
|
// 接口防并发
|
|
|
/*if (!$this->apiLimit(1, 1000)) {
|
|
|
$this->error(__('Operation frequently'));
|
|
@@ -170,6 +170,14 @@ class Gift extends Api
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ //tag任务赠送金币
|
|
|
+ //搭讪奖励
|
|
|
+ $task_rs = \app\common\model\TaskLog::tofinish($this->auth->id,15);
|
|
|
+ if($task_rs === false){
|
|
|
+ Db::rollback();
|
|
|
+ $this->error('完成任务赠送奖励失败');
|
|
|
+ }
|
|
|
+
|
|
|
Db::commit();
|
|
|
$this->success('赠送成功');
|
|
|
|