wesmiler 1 年間 前
コミット
1be3fea39c
1 ファイル変更1 行追加1 行削除
  1. 1 1
      app/Services/Common/AccountLogService.php

+ 1 - 1
app/Services/Common/AccountLogService.php

@@ -212,7 +212,7 @@ class AccountLogService extends BaseService
 
 
         // 账户余额
         // 账户余额
         $userAmount = isset($userInfo[$field])? $userInfo[$field] : 0;
         $userAmount = isset($userInfo[$field])? $userInfo[$field] : 0;
-        if($userAmount < $amount){
+        if($type == 2 && $userAmount < $amount){
             $this->error = lang(2035,['name'=>$coinName]);
             $this->error = lang(2035,['name'=>$coinName]);
             return false;
             return false;
         }
         }