Browse Source

领取任务奖励

lizhen_gitee 1 year ago
parent
commit
53741da7c6
2 changed files with 3 additions and 4 deletions
  1. 2 3
      application/api/controller/Task.php
  2. 1 1
      application/extra/wallet.php

+ 2 - 3
application/api/controller/Task.php

@@ -137,9 +137,8 @@ class Task extends Api
         }
         Db::startTrans();
         try{
-            // 增加用户经验值
-            //$res1 = \app\common\model\User::addEmpirical($this->auth->id,$taskInfo["exp"]);
-            $res1 = model('wallet')->lockChangeAccountRemain($this->auth->id,'gold',$taskInfo["exp"],61,$taskInfo['name'],'task_log',$tasklogInfo);
+            // 增加用户金币
+            $res1 = model('wallet')->lockChangeAccountRemain($this->auth->id,'gold',$taskInfo["exp"],61,$taskInfo['name'],'task_log',$tasklogInfo['id']);
             if($res1['status'] === false){
                 Db::rollback();
                 $this->error($res1['msg']);

+ 1 - 1
application/extra/wallet.php

@@ -24,7 +24,7 @@ return [
         54 => '聊天获得礼物',//money +
 
 
-        61 => '完成个人任务',
+        61 => '完成个人任务',//gold +
         63 => '邀请注册奖励',//gold +
 
     ],