更新 app/common/service/generator/stub/php/logic.stub

This commit is contained in:
mkm 2025-08-21 10:19:07 +08:00
parent 4ad5577c2b
commit dd4cc2d281

View File

@ -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;
}
}