请注意,本文编写于 71 天前,最后修改于 40 天前,其中某些信息可能已经过时。
代码模板
Db::startTrans();
try {
$END$
} catch (\Exception $e) {
Db::rollback();
Log::error('事务执行失败!' . $e->getMessage() . $e->getTraceAsString());
throw new ApiException($e->getMessage());
}
Db::commit();
return true;
全部评论 (暂无评论)
info 还没有任何评论,你来说两句呐!