From d8c2657922b95a30e1a80ff6730ebf07deeab1d5 Mon Sep 17 00:00:00 2001 From: sugar1569 Date: Tue, 24 Mar 2026 08:45:59 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E7=A8=8B=E5=BA=8F=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E3=80=91fix:=20=E4=BF=AE=E5=A4=8D=E4=B8=BB=E9=A2=98=E4=BF=A1?= =?UTF-8?q?=E6=81=AF=E6=A3=80=E6=9F=A5=E5=92=8C=E4=BA=8B=E5=8A=A1=E5=A4=84?= =?UTF-8?q?=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- crmeb/app/api/controller/v1/PublicController.php | 2 +- crmeb/crmeb/command/Util.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/crmeb/app/api/controller/v1/PublicController.php b/crmeb/app/api/controller/v1/PublicController.php index d2fd95051..34fdc38c3 100644 --- a/crmeb/app/api/controller/v1/PublicController.php +++ b/crmeb/app/api/controller/v1/PublicController.php @@ -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'); 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);