diff --git a/crmeb/crmeb/command/Util.php b/crmeb/crmeb/command/Util.php index 226983a17..a6eae6090 100644 --- a/crmeb/crmeb/command/Util.php +++ b/crmeb/crmeb/command/Util.php @@ -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);