From b8d51c6462a112b14bd67582430640f56e897063 Mon Sep 17 00:00:00 2001 From: weifashi <605403358@qq.com> Date: Wed, 27 Sep 2023 17:20:10 +0800 Subject: [PATCH] =?UTF-8?q?feat=EF=BC=9A=E6=B7=BB=E5=8A=A0=E5=85=B3?= =?UTF-8?q?=E9=94=AE=E4=BF=A1=E6=81=AF=E6=97=A5=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Models/AbstractModel.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Models/AbstractModel.php b/app/Models/AbstractModel.php index 3fdf1d821..61c12caec 100644 --- a/app/Models/AbstractModel.php +++ b/app/Models/AbstractModel.php @@ -235,10 +235,10 @@ class AbstractModel extends Model } catch (\Throwable $eb) { info($eb); } + info($e); if ($e instanceof ApiException) { throw new ApiException( config('app.debug') ? $e->getMessage() : '处理错误', $e->getData(), $e->getCode()); } else { - info($e); throw new ApiException( config('app.debug') ? ($e->getMessage() ?: '处理错误') : '处理错误'); } }