作者 lyh

gx脚本

@@ -32,6 +32,7 @@ class UpdateKeyword extends Command @@ -32,6 +32,7 @@ class UpdateKeyword extends Command
32 */ 32 */
33 protected $description = '批量更新关键词内容'; 33 protected $description = '批量更新关键词内容';
34 34
  35 +
35 public function handle(){ 36 public function handle(){
36 while (true){ 37 while (true){
37 $keywordPageModel = new KeywordPage(); 38 $keywordPageModel = new KeywordPage();
@@ -49,9 +49,9 @@ class Kernel extends ConsoleKernel @@ -49,9 +49,9 @@ class Kernel extends ConsoleKernel
49 $schedule->command('update_keyword_route')->dailyAt('01:00')->withoutOverlapping(1); //升级项目--清除路由相同的关键字 49 $schedule->command('update_keyword_route')->dailyAt('01:00')->withoutOverlapping(1); //升级项目--清除路由相同的关键字
50 $schedule->command('recommended_suppliers')->dailyAt('03:00')->withoutOverlapping(1); //每天凌晨1点执行一次生成推荐商 50 $schedule->command('recommended_suppliers')->dailyAt('03:00')->withoutOverlapping(1); //每天凌晨1点执行一次生成推荐商
51 // 每日推送视频任务 51 // 每日推送视频任务
52 - $schedule->command('video_task')->hourly()->withoutOverlapping(1);  
53 - // 每日推送视频任务  
54 $schedule->command('update_keyword')->hourly()->withoutOverlapping(1); 52 $schedule->command('update_keyword')->hourly()->withoutOverlapping(1);
  53 + // 每日推送视频任务
  54 + $schedule->command('video_task')->hourly()->withoutOverlapping(1);
55 // 每日推送已完成视频任务项目生成对应界面 55 // 每日推送已完成视频任务项目生成对应界面
56 $schedule->command('notice_c')->dailyAt('04:00')->withoutOverlapping(1); 56 $schedule->command('notice_c')->dailyAt('04:00')->withoutOverlapping(1);
57 } 57 }