|
@@ -351,6 +351,14 @@ class Usercenter extends Api
|
|
|
$this->error($rs['msg']);
|
|
|
}
|
|
|
|
|
|
+ //tag任务赠送金币
|
|
|
+ //搭讪奖励
|
|
|
+ $task_rs = \app\common\model\TaskLog::tofinish($this->auth->id,15);
|
|
|
+ if($task_rs === false){
|
|
|
+ Db::rollback();
|
|
|
+ $this->error('完成任务赠送奖励失败');
|
|
|
+ }
|
|
|
+
|
|
|
Db::commit();
|
|
|
$this->success('success');
|
|
|
}
|
|
@@ -410,6 +418,15 @@ class Usercenter extends Api
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ //tag任务赠送金币
|
|
|
+ //语音匹配奖励 +5金币
|
|
|
+ if(!empty($result)){
|
|
|
+ $task_rs = \app\common\model\TaskLog::tofinish($this->auth->id,11);
|
|
|
+ if($task_rs === false){
|
|
|
+ $this->error('完成任务赠送奖励失败');
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
$this->success('success',$result);
|
|
|
}
|
|
|
|
|
@@ -467,6 +484,15 @@ class Usercenter extends Api
|
|
|
$result[] = ['id'=>$val];
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+ //tag任务赠送金币
|
|
|
+ //视频匹配奖励 +5金币
|
|
|
+ if(!empty($result)){
|
|
|
+ $task_rs = \app\common\model\TaskLog::tofinish($this->auth->id,12);
|
|
|
+ if($task_rs === false){
|
|
|
+ $this->error('完成任务赠送奖励失败');
|
|
|
+ }
|
|
|
+ }
|
|
|
$this->success('success',$result);
|
|
|
}
|
|
|
|
|
@@ -503,6 +529,15 @@ class Usercenter extends Api
|
|
|
$result = Db::name('user')->field('id,nickname,username,avatar,audio_bio')->where(['id'=>['IN',$lists]])->select();
|
|
|
$result = list_domain_image($result,['avatar,audio_bio']);
|
|
|
}
|
|
|
+
|
|
|
+ //tag任务赠送金币
|
|
|
+ //缘分匹配奖励 +5金币
|
|
|
+ if(!empty($result)){
|
|
|
+ $task_rs = \app\common\model\TaskLog::tofinish($this->auth->id,10);
|
|
|
+ if($task_rs === false){
|
|
|
+ $this->error('完成任务赠送奖励失败');
|
|
|
+ }
|
|
|
+ }
|
|
|
$this->success('success',$result);
|
|
|
}
|
|
|
|