更新 app/common/service/generator/stub/php/logic.stub
This commit is contained in:
parent
eac4232ca4
commit
57da189faa
@ -36,7 +36,7 @@ class {UPPER_CAMEL_NAME}Logic extends BaseLogic
|
|||||||
return true;
|
return true;
|
||||||
} catch (\Exception $e) {
|
} catch (\Exception $e) {
|
||||||
Db::rollback();
|
Db::rollback();
|
||||||
throw new Exception($e->getMessage());
|
throw new \Exception($e->getMessage());
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -61,7 +61,7 @@ class {UPPER_CAMEL_NAME}Logic extends BaseLogic
|
|||||||
return true;
|
return true;
|
||||||
} catch (\Exception $e) {
|
} catch (\Exception $e) {
|
||||||
Db::rollback();
|
Db::rollback();
|
||||||
throw new Exception($e->getMessage());
|
throw new \Exception($e->getMessage());
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user