|
@@ -63,6 +63,17 @@ class Topicdongtai extends Api
|
|
|
//圈子新增一个贴
|
|
|
$rs = Db::name('topic_hub')->where('id','IN',$topic_ids)->setInc('t_number');
|
|
|
|
|
|
+ //task任务
|
|
|
+ //好评有礼
|
|
|
+ $task_count = Db::name('topic_dongtai')->where('user_id',$this->auth->id)->count();
|
|
|
+ if($task_count == 1){
|
|
|
+ $task_rs = \app\common\model\TaskLog::tofinish($this->auth->id,16);
|
|
|
+ if($task_rs === false){
|
|
|
+ Db::rollback();
|
|
|
+ $this->error('完成任务失败');
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
Db::commit();
|
|
|
|
|
|
$this->success('发布成功',$id);
|