Merge branch 'dev' of ssh://git.bgbg.live:18150/root/SEONexus into dev

This commit is contained in:
Default
2025-03-23 19:03:34 +08:00
3 changed files with 11 additions and 34 deletions

View File

@@ -5,16 +5,16 @@ use think\migration\db\Column;
class AddGgPaiXuColumOnGuangGaoTable extends Migrator
{
// public function up()
// {
// $Table = $this->table('guang_gao');
public function up()
{
// $Table = $this->table('guang_gao');
// $Table->addColumn('gg_sort', 'integer', ['after' => 'gg_tiao_zhuan_di_zhi'])->setComment("排序")->save();
// }
// $Table->addColumn('gg_sort', 'integer', ['after' => 'gg_tiao_zhuan_di_zhi'])->setComment("排序")->save();
}
// public function down()
// {
// $Table = $this->table('guang_gao');
// $Table->removeColumn('gg_sort')->save();
// }
public function down()
{
// $Table = $this->table('guang_gao');
// $Table->removeColumn('gg_sort')->save();
}
}

View File

@@ -9,11 +9,6 @@ class SeedManager
AdminUserSeeder::handle();
PlanTaskSeeder::handle();
SystemConfigSeeder::handle();
GuangGaoSeeder::handle();
ZiYuanDuanDianSeeder::handle();
VideoSeoSeeder::handle();
// SeoTdkConfigSeeder::handle();
VideoInfoSeeder::handle();
SiteSeeder::handle();
}
}

View File

@@ -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();
}
}