afa 8 месяцев назад
Родитель
Сommit
8ae82a3491
1 измененных файлов с 1 добавлено и 2 удалено
  1. 1 2
      application/common/model/LedgerWalletModel.php

+ 1 - 2
application/common/model/LedgerWalletModel.php

@@ -220,10 +220,9 @@ class LedgerWalletModel extends Model
         if ($amount < 0 && $totalAmount < -$amount) {
             throw new Exception($asset . '余额不足');
         }
-
         //扣除冻结金额
         if($freeze > 0){
-            if($freeze > -$amount) $walletUpdate['freeze']  = bcsub($freeze, -$amount, 6);
+            if($freeze > -$amount) $walletUpdate['frozen']  = bcsub($freeze, -$amount, 6);
             if($freeze <= -$amount) $walletUpdate = [$asset => bcadd($totalAmount, $amount, 6), 'freeze' => 0];
         }else{
             $newAmount    = bcadd($totalAmount, $amount, 6); // 新余额