更新 app/common/service/generator/stub/php/logic.stub
This commit is contained in:
parent
4ad5577c2b
commit
dd4cc2d281
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user