diff --git a/app/common/service/generator/stub/php/logic.stub b/app/common/service/generator/stub/php/logic.stub index 8433dfb..22861b3 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(); - throw new Exception($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(); - throw new Exception($e->getMessage()); + throw new \Exception($e->getMessage()); return false; } }