From 4499c057f64bb669d46d74e47d632c13936d2c4d Mon Sep 17 00:00:00 2001 From: panliang <1163816051@qq.com> Date: Thu, 4 Aug 2022 11:52:55 +0800 Subject: [PATCH] order-profit --- app/Console/Commands/OrderProfitCommand.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Console/Commands/OrderProfitCommand.php b/app/Console/Commands/OrderProfitCommand.php index 000b616e..92fa4525 100644 --- a/app/Console/Commands/OrderProfitCommand.php +++ b/app/Console/Commands/OrderProfitCommand.php @@ -78,7 +78,7 @@ class OrderProfitCommand extends Command $service->wechatTransfer($profit); } DB::commit(); - } catch (\Exception $e) { + } catch (\Throwable $e) { DB::rollBack(); $this->error($e->getMessage()); }