【程序目录】fix(command): 修正事务处理方式

This commit is contained in:
sugar1569 2026-03-24 09:32:34 +08:00
parent 5f8e20fe41
commit bc4cb10d6b

View File

@ -145,7 +145,7 @@ class Util extends Command
];
// 执行 SQL 语句
return $this->transaction(function () use ($sql) {
return Db::transaction(function () use ($sql) {
try {
foreach ($sql as $item) {
Db::execute($item);