mirror of
https://gitee.com/niucloud-team/niucloud.git
synced 2025-12-14 02:22:48 +00:00
Update Upgrade.php
This commit is contained in:
parent
837057ace6
commit
6ee13de48e
@ -391,6 +391,7 @@ class Upgrade
|
|||||||
$addon_theme = $this->getVipcardTheme();
|
$addon_theme = $this->getVipcardTheme();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!empty($addon_theme)) {
|
||||||
foreach ($addon_theme[ 'theme_color' ] as $k => $v) {
|
foreach ($addon_theme[ 'theme_color' ] as $k => $v) {
|
||||||
$data[] = [
|
$data[] = [
|
||||||
'type' => 'app',
|
'type' => 'app',
|
||||||
@ -423,6 +424,8 @@ class Upgrade
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
if (!empty($data)) {
|
||||||
$diy_theme_model = new DiyTheme();
|
$diy_theme_model = new DiyTheme();
|
||||||
foreach ($data as $k => &$v) {
|
foreach ($data as $k => &$v) {
|
||||||
$theme_count = $diy_theme_model->where([
|
$theme_count = $diy_theme_model->where([
|
||||||
@ -435,7 +438,6 @@ class Upgrade
|
|||||||
unset($data[ $k ]);
|
unset($data[ $k ]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (!empty($data)) {
|
|
||||||
$diy_theme_model->insertAll($data);
|
$diy_theme_model->insertAll($data);
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user