From dd4cc2d28117049863113c66723a49e1749b553c Mon Sep 17 00:00:00 2001 From: mkm <727897186@qq.com> Date: Thu, 21 Aug 2025 10:19:07 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20app/common/service/generat?= =?UTF-8?q?or/stub/php/logic.stub?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/common/service/generator/stub/php/logic.stub | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/common/service/generator/stub/php/logic.stub b/app/common/service/generator/stub/php/logic.stub index e7ad552..8433dfb 100644 --- a/app/common/service/generator/stub/php/logic.stub +++ b/app/common/service/generator/stub/php/logic.stub @@ -36,7 +36,7 @@ class {UPPER_CAMEL_NAME}Logic extends BaseLogic return true; } catch (\Exception $e) { Db::rollback(); - self::setError($e->getMessage()); + throw new Exception($e->getMessage()); return false; } } @@ -61,7 +61,7 @@ class {UPPER_CAMEL_NAME}Logic extends BaseLogic return true; } catch (\Exception $e) { Db::rollback(); - self::setError($e->getMessage()); + throw new Exception($e->getMessage()); return false; } }