From 14595d3a60138cf724ea42ffb4d97f675b5b22c4 Mon Sep 17 00:00:00 2001 From: weifashi <605403358@qq.com> Date: Tue, 17 Oct 2023 14:45:19 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9A=E4=BF=AE=E5=A4=8D=E6=8A=A5?= =?UTF-8?q?=E9=94=99=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Models/AbstractModel.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/app/Models/AbstractModel.php b/app/Models/AbstractModel.php index 61c12caec..f7bde29a9 100644 --- a/app/Models/AbstractModel.php +++ b/app/Models/AbstractModel.php @@ -235,11 +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()); + throw new ApiException( $e->getMessage() , $e->getData(), $e->getCode()); } else { - throw new ApiException( config('app.debug') ? ($e->getMessage() ?: '处理错误') : '处理错误'); + throw new ApiException( $e->getMessage() ?: '处理错误'); } } }