diff --git a/app/Command/WithdrawCommand.php b/app/Command/WithdrawCommand.php index df92bda..345a2a8 100644 --- a/app/Command/WithdrawCommand.php +++ b/app/Command/WithdrawCommand.php @@ -63,6 +63,10 @@ class WithdrawCommand extends HyperfCommand echo 'before balance: ' . $balance . PHP_EOL; + if ($balance == 0) { + return; + } + $bankCard = BankCard::where('user_id', $user->user_id)->first(); $requestLog = $this->createRequestLog([