lizhen_gitee 1 рік тому
батько
коміт
d51f1a3be8

+ 1 - 7
application/api/controller/Gift.php

@@ -144,13 +144,7 @@ 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('赠送成功');

+ 1 - 7
application/api/controller/Notify.php

@@ -176,13 +176,7 @@ class Notify extends Api
             return false;
         }
 
-        //tag任务赠送金币
-        //开通VIP 50金币
-        /*$task_rs = \app\common\model\TaskLog::tofinish($args['user_id'],9);
-        if($task_rs === false){
-            Db::rollback();
-            $this->error('完成任务赠送奖励失败');
-        }*/
+
         //逻辑结束
 
         //状态

+ 1 - 2
application/api/controller/Topicdongtai.php

@@ -64,7 +64,7 @@ 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);
@@ -390,7 +390,6 @@ class Topicdongtai extends Api
                 $this->error('点赞失败');
             }
 
-            // \app\common\model\TaskLog::tofinish($this->auth->id,"VpXtablCsZ",1);
 
             Db::commit();
             $this->success('点赞成功');

+ 1 - 7
application/api/controller/Userfollow.php

@@ -183,13 +183,7 @@ class Userfollow extends Api
             Db::name('message')->insertGetId($message);
         }
 
-        //tag任务赠送金币
-        //关注3人加3金币
-        /*$task_rs = \app\common\model\TaskLog::tofinish($this->auth->id,2);
-        if($task_rs === false){
-            Db::rollback();
-            $this->error('完成任务赠送奖励失败');
-        }*/
+        
 
         Db::commit();
         $this->success('操作成功',$id);