mirror of
https://github.com/crmeb/CRMEB.git
synced 2026-10-29 22:10:49 +00:00
【程序文件】fix: 修复主题信息检查和事务处理
This commit is contained in:
parent
e5e6d3a542
commit
d8c2657922
@ -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');
|
||||
|
||||
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user