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;
-        if($userAmount < $amount){
+        if($type == 2 && $userAmount < $amount){
             $this->error = lang(2035,['name'=>$coinName]);
             return false;
         }