瀏覽代碼

logtype的数字

lizhen_gitee 1 年之前
父節點
當前提交
9db271250d

+ 1 - 1
application/admin/controller/Takecash.php

@@ -102,7 +102,7 @@ class Takecash extends Backend
                 $msg_id = \app\common\model\Message::addMessage($info['user_id'],'提现审核','提现审核已经通过');
             }elseif($status == 2){
                 //还钱
-                $wallet_rs = model('wallet')->lockChangeAccountRemain($info['user_id'],'jewel',$info['jewel'],16,'提现被拒返回:'.$info['jewel'],'take_cash',$info['id']);
+                $wallet_rs = model('wallet')->lockChangeAccountRemain($info['user_id'],'jewel',$info['jewel'],31,'提现被拒返回:'.$info['jewel'],'take_cash',$info['id']);
                 if($wallet_rs['status'] === false){
                     Db::rollback();
                     $this->error($wallet_rs['msg']);

+ 2 - 2
application/api/controller/Gift.php

@@ -127,7 +127,7 @@ class Gift extends Api
         if($giftvalue > 0){
 
             // 扣除当前用户余额
-            $wallet_rs = model('wallet')->lockChangeAccountRemain($this->auth->id,'gold',-$giftvalue,53,'赠送给'.$touserinfo['username'].'礼物:'.$giftinfo["name"].'X'.$number,'gift_user_typing',$log_id);
+            $wallet_rs = model('wallet')->lockChangeAccountRemain($this->auth->id,'gold',-$giftvalue,14,'赠送给'.$touserinfo['username'].'礼物:'.$giftinfo["name"].'X'.$number,'gift_user_typing',$log_id);
             if($wallet_rs['status'] === false){
                 Db::rollback();
                 $this->error($wallet_rs['msg']);
@@ -136,7 +136,7 @@ class Gift extends Api
 
         if($data['getvalue'] > 0){
 
-            $wallet_rs = model('wallet')->lockChangeAccountRemain($user_id,'jewel',$data['getvalue'],54,$this->auth->username.'送给我礼物:'.$giftinfo["name"].'X'.$number,'gift_user_typing',$log_id);
+            $wallet_rs = model('wallet')->lockChangeAccountRemain($user_id,'jewel',$data['getvalue'],24,$this->auth->username.'送给我礼物:'.$giftinfo["name"].'X'.$number,'gift_user_typing',$log_id);
             if($wallet_rs['status'] === false){
                 Db::rollback();
                 $this->error($wallet_rs['msg']);

+ 1 - 1
application/api/controller/Takecash.php

@@ -103,7 +103,7 @@ class Takecash extends Api
         }
 
         //扣除money
-        $rs_wallet = model('Wallet')->lockChangeAccountRemain($this->auth->id,'jewel',-$jewel,15,'提现','take_cash',$log_id);
+        $rs_wallet = model('Wallet')->lockChangeAccountRemain($this->auth->id,'jewel',-$jewel,30,'提现','take_cash',$log_id);
         if($rs_wallet['status']===false)
         {
             Db::rollback();

+ 1 - 1
application/api/controller/Task.php

@@ -140,7 +140,7 @@ class Task extends Api
         Db::startTrans();
         try{
             // 增加用户金币
-            $res1 = model('wallet')->lockChangeAccountRemain($this->auth->id,'jewel',$taskInfo["exp"],61,$taskInfo['name'],'task_log',$tasklogInfo['id']);
+            $res1 = model('wallet')->lockChangeAccountRemain($this->auth->id,'jewel',$taskInfo["exp"],32,$taskInfo['name'],'task_log',$tasklogInfo['id']);
             if($res1['status'] === false){
                 Db::rollback();
                 $this->error($res1['msg']);

+ 1 - 1
application/api/controller/Usersign.php

@@ -94,7 +94,7 @@ class Usersign extends Api
         }
 
         //加钱
-        $rs = model('wallet')->lockChangeAccountRemain($this->auth->id,'jewel',$data['goldnum'],41,'签到奖励','user_sign',$log_id);
+        $rs = model('wallet')->lockChangeAccountRemain($this->auth->id,'jewel',$data['goldnum'],33,'签到奖励','user_sign',$log_id);
         if($rs['status'] === false){
             Db::rollback();
             $this->error($rs['msg']);

+ 12 - 11
application/extra/wallet.php

@@ -6,27 +6,28 @@ return [
     'logtype' => [
         1 => '系统调节',//gold + -
 
-
         10 => '金币充值',//gold +
+
         11 => '视频通话',//-
         12 => '语音通话',//-
         13 => '聊天',//-
-//        14 => '金币首充赠送',
-        53 => '聊天赠送礼物',//gold -
-
-
+        14 => '聊天赠送礼物',//gold -
 
-        15 => '提现',      //jewel-
-        16 => '提现拒绝返回',  //jewel+
+/////////////////////////////////////
 
         21 => '视频通话',//jewel+
         22 => '语音通话',//jewel+
         23 => '聊天',//jewel+
-        54 => '聊天获得礼物',//jewel +
+        25 => '聊天获得礼物',//jewel +
+
+        30 => '提现',      //jewel-
+        31 => '提现拒绝返回',  //jewel+
+        32 => '完成个人任务',//jewel +
+        33 => '签到奖励',//jewel +
+
+        41 => '邀请充值收益',//jewel +
+
 
-        41 => '签到奖励',//jewel +
-        61 => '完成个人任务',//jewel +
-        63 => '邀请注册奖励',//jewel +
 
     ],
     'moneyname' => [