From d4b3352a5fe36eb4d7414bfde8385e059d88c6aa Mon Sep 17 00:00:00 2001 From: mkm <727897186@qq.com> Date: Wed, 5 Jun 2024 09:46:28 +0800 Subject: [PATCH] =?UTF-8?q?feat(PaymentLogic):=20=E5=BC=82=E5=B8=B8?= =?UTF-8?q?=E4=BF=A1=E6=81=AF=E5=A2=9E=E5=8A=A0=E6=97=A5=E5=BF=97=E8=AE=B0?= =?UTF-8?q?=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/common/logic/PaymentLogic.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/common/logic/PaymentLogic.php b/app/common/logic/PaymentLogic.php index cbfb33b1e..124ece936 100644 --- a/app/common/logic/PaymentLogic.php +++ b/app/common/logic/PaymentLogic.php @@ -62,8 +62,8 @@ class PaymentLogic extends BaseLogic $result = false; } } catch (Exception $e) { - \support\Log::info($e->extra['message']); - throw new \Exception($e->extra['message']); + \support\Log::info($e->extra['message']?? $e->getMessage()); + throw new \Exception($e->extra['message']?? $e->getMessage()); } return $result; }