Browse Source

钱包操作优化

lizhen_gitee 1 year ago
parent
commit
ed72172d0c
1 changed files with 2 additions and 2 deletions
  1. 2 2
      application/common/model/Wallet.php

+ 2 - 2
application/common/model/Wallet.php

@@ -115,7 +115,7 @@ class Wallet extends Model
 
 
         //检测
-        $wallet = Db::name('user')->lock(true)->where(['id'=>$user_id])->find();
+        $wallet = Db::name('user')->field('money,jewel')->lock(true)->where(['id'=>$user_id])->find();
         if(!$wallet)
         {
             $result['msg'] = '不存在的用户';
@@ -193,7 +193,7 @@ class Wallet extends Model
         $enum = [
             0 => 'payorder',
             1 => 'recharge',
-            3 => 'give_gift',
+//            3 => 'give_gift',//接口处直接判断
             5 => 'noble',
             6 => 'attire',
             11 => 'transfer',