debug
This commit is contained in:
@@ -9,11 +9,6 @@ class SeedManager
|
||||
AdminUserSeeder::handle();
|
||||
PlanTaskSeeder::handle();
|
||||
SystemConfigSeeder::handle();
|
||||
GuangGaoSeeder::handle();
|
||||
ZiYuanDuanDianSeeder::handle();
|
||||
VideoSeoSeeder::handle();
|
||||
// SeoTdkConfigSeeder::handle();
|
||||
VideoInfoSeeder::handle();
|
||||
SiteSeeder::handle();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4,7 +4,6 @@ namespace database\seeders;
|
||||
|
||||
use app\model\AdminUserModel;
|
||||
use app\model\CaiJiPeiZhiModel;
|
||||
use app\model\GuangGaoPeiZhiModel;
|
||||
use app\model\PlanTaskModel;
|
||||
use app\model\SystemConfigModel;
|
||||
|
||||
@@ -141,23 +140,6 @@ class SystemConfigSeeder
|
||||
CaiJiPeiZhiModel::flushCache();
|
||||
|
||||
|
||||
$arrData = [
|
||||
[
|
||||
'ggpz_code' => 'TONG_JI_DAI_MA',
|
||||
'ggpz_val' => '',
|
||||
'ggpz_description' => '统计代码',
|
||||
],
|
||||
|
||||
];
|
||||
|
||||
foreach ($arrData as $arrGuangGaoPeiZhi) {
|
||||
$GuangGaoPeiZhiModel = GuangGaoPeiZhiModel::where('ggpz_code', $arrGuangGaoPeiZhi['ggpz_code'])->find();
|
||||
|
||||
if (empty($GuangGaoPeiZhiModel)) {
|
||||
$GuangGaoPeiZhiModel = GuangGaoPeiZhiModel::insert($arrGuangGaoPeiZhi);
|
||||
}
|
||||
}
|
||||
|
||||
GuangGaoPeiZhiModel::flushCache();
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user