walkor / walkor/webman

可以使用事务吗?

Open
#49 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
PHP
Stars
2.7k
Forks
251
PR merge metrics
No merged PRs in 30d

Description

Db::beginTransaction();
try {
……
Db::commit();
return json(['code' => 0, 'msg' => '通过', 'data' => $data]);
} catch (\Throwable $e) {
Db::rollBack();
return json(['code' => -100, 'msg' => $e->getMessage()]);
}

没有报错 但是数据库没有插入

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.