From 003c72792b9d1fb5365add469e418abf98fbac3b Mon Sep 17 00:00:00 2001 From: elf <360197197@qq.com> Date: Fri, 29 Dec 2023 16:12:44 +0800 Subject: [PATCH] yh --- app/Command/WithdrawCommand.php | 4 ++++ 1 file changed, 4 insertions(+) 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([