【程序文件】fix: 修复主题信息检查和事务处理

This commit is contained in:
sugar1569 2026-03-24 08:45:59 +08:00
parent e5e6d3a542
commit d8c2657922
2 changed files with 2 additions and 2 deletions

View File

@ -856,7 +856,7 @@ class PublicController
], true);
$themeInfo = app()->make(ThemeServices::class)->getThemeInfo($theme_id, $type);
if ($themeInfo) {
if ($themeInfo && isset($themeInfo['value'])) {
foreach ($themeInfo['value'] as &$userDataItem) {
if ($userDataItem['name'] == 'customerService') {
$userDataItem['routine_contact_type'] = (int)sys_config('routine_contact_type');

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);