novel-view

This commit is contained in:
make
2025-03-28 20:14:11 +08:00
parent 28b7343b51
commit 217d32aca9
2 changed files with 4 additions and 4 deletions

View File

@@ -43,11 +43,11 @@ class TemplateSeeder
];
foreach ($arrData as $arrSystemConfig) {
$TemplatesModel = TemplatesModel::where('t_id', $arrSystemConfig['t_id'])->find();
foreach ($arrData as $arrTemplate) {
$TemplatesModel = TemplatesModel::where('t_id', $arrTemplate['t_id'])->find();
if (empty($TemplatesModel)) {
TemplatesModel::insert($arrSystemConfig);
TemplatesModel::insert($arrTemplate);
}
}