baidu tuison

This commit is contained in:
make
2026-01-19 21:58:00 +08:00
parent 0323018c8c
commit 934ead3e11
10 changed files with 1075 additions and 466 deletions

View File

@@ -0,0 +1,27 @@
<?php
use think\migration\Migrator;
use think\migration\db\Column;
class AddBaiduTokenToVideoTable extends Migrator
{
public function up()
{
$table = $this->table('domain');
$table
->addColumn(
Column::string('d_baidu_token', 255)
->setNullable(true)
->setComment('百度推送token')
)
->update();
}
public function down()
{
$table = $this->table('domain');
$table
->removeColumn('d_baidu_token')
->update();
}
}

View File

@@ -110,12 +110,22 @@ class PlanTaskSeeder
'pt_code' => 'PULL_DOU_BAN_SHI_PIN',
'pt_enable' => 0,
'pt_limit' => 1 * 24 * 3600,
], [
],
[
'pt_name' => '茅台资源库全量采集',
'pt_code' => 'PULL_MAO_TAI_SHI_PIN',
'pt_enable' => 0,
'pt_limit' => 1 * 24 * 3600,
],
[
'pt_name' => '推送视频url到百度收录',
'pt_code' => 'PUSH_BAIDU_VIDEO_URL',
'pt_enable' => 0,
'pt_limit' => 1 * 24 * 3600,
],
];