Selaa lähdekoodia

钱包日志类型,确定

lizhen_gitee 1 vuosi sitten
vanhempi
commit
2d6ae57821

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

@@ -40,7 +40,7 @@ class UserPayRank extends Backend
                 return $this->selectpage();
             }
             list($where, $sort, $order, $offset, $limit) = $this->buildparams();
-            $whereAppend["user_jewel_log.type"] = ["in",[0,2,3,5,6,13]];//查看wallet.php文件
+            $whereAppend["user_jewel_log.type"] = ["in",[3,6,11,13,19,32]];//查看wallet.php文件
             $list = model('UserJewelLog')->alias("user_jewel_log")
                 ->field("user_jewel_log.id,sum(user_jewel_log.value) as total_price,user_jewel_log.user_id,user.avatar as `user.avatar`,user.nickname as `user.nickname`,user_jewel_log.createtime")
                 ->where($where)

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

@@ -74,7 +74,7 @@ class Notifynew extends Api
 
         //逻辑开始
         $args = json_decode($orderInfo['args'],true);
-        $result = model('Wallet')->lockChangeAccountRemain($orderInfo['user_id'],'gold',$args['gold'],10, '金币充值','pay_order',$orderInfo['id']);
+        $result = model('Wallet')->lockChangeAccountRemain($orderInfo['user_id'],$args['gold'],'+',0,'金币充值',1,'jewel');
         if($result['status']===false)
         {
             Db::rollback();

+ 0 - 1
application/api/controller/Pay.php

@@ -156,7 +156,6 @@ class Pay extends Api
         }
 
         //增加jewel
-//        $rs_wallet = model('Wallet')->lockChangeAccountRemain($uid,'gold',$jewel,22, '收益兑换金币',$rs_wallet['log_table'],$rs_wallet['log_id']);
         $rs_wallet = model('Wallet')->lockChangeAccountRemain($uid,$jewel,'+',0,'收益兑换金币',14,'jewel');
         if($rs_wallet['status']===false)
         {

+ 0 - 1
application/api/controller/Payios.php

@@ -150,7 +150,6 @@ class Payios extends Api
         $args = json_decode($order_info['args'],true);
         //先充值
         if($order_info['table_name'] == 'jewel_recharge'){
-//            $result = model('Wallet')->lockChangeAccountRemain($order_info['user_id'],'gold',$args['gold'],10, '金币充值','pay_order',$order_info['id']);
             $result = model('Wallet')->lockChangeAccountRemain($order_info['user_id'],$args['jewel'],'+',0,'金币充值',33,'jewel');
             if($result['status']===false)
             {

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

@@ -139,7 +139,6 @@ class Takecash extends Api
         }
 
         //扣除money
-//        $rs_wallet = model('Wallet')->lockChangeAccountRemain($this->auth->id,'money',-$money,15,'提现','take_cash',$log_id);
         $rs_wallet = model('Wallet')->lockChangeAccountRemain($this->auth->id,$money,'-',0,'提现',104,'money');
         if($rs_wallet['status']===false)
         {

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

@@ -140,7 +140,6 @@ class Task extends Api
             // 增加用户经验值
             //$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['id']);
             $res1 = model('wallet')->lockChangeAccountRemain($this->auth->id,$taskInfo["exp"],'+',0,'任务-'.$taskInfo['name'],20,'jewel');
             if($res1['status'] === false){
                 Db::rollback();

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

@@ -217,7 +217,7 @@ class User extends Api
             if(isset($data['pre_userid']) && !empty($data['pre_userid'])){
                 /*$intro_gold = config('site.intro_newuser_gift_goldnum') ?: 0;
                 if($intro_gold > 0){
-                    $wallet_rs = model('wallet')->lockChangeAccountRemain($data['intro_uid'],'gold',$intro_gold,63,'邀请'.$this->auth->username);
+                    $wallet_rs = model('wallet')->lockChangeAccountRemain();
                     if($wallet_rs['status'] === false){
                         Db::rollback();
                         $this->setError($wallet_rs['msg']);