正在显示
2 个修改的文件
包含
2 行增加
和
1 行删除
| @@ -39,7 +39,7 @@ class TemplateLabel extends Command | @@ -39,7 +39,7 @@ class TemplateLabel extends Command | ||
| 39 | */ | 39 | */ |
| 40 | public function handle(){ | 40 | public function handle(){ |
| 41 | //获取最近7天模版的记录 | 41 | //获取最近7天模版的记录 |
| 42 | - $start_time = now()->subDays(7)->startOfDay()->toDateString(); | 42 | + $start_time = now()->subDays(90)->startOfDay()->toDateString(); |
| 43 | $end_time = now()->startOfDay()->toDateString(); | 43 | $end_time = now()->startOfDay()->toDateString(); |
| 44 | $this->setTemplateModule($start_time,$end_time); | 44 | $this->setTemplateModule($start_time,$end_time); |
| 45 | $this->setTemplate($start_time,$end_time); | 45 | $this->setTemplate($start_time,$end_time); |
| @@ -17,6 +17,7 @@ class Kernel extends ConsoleKernel | @@ -17,6 +17,7 @@ class Kernel extends ConsoleKernel | ||
| 17 | { | 17 | { |
| 18 | // 每日更新最新模块 | 18 | // 每日更新最新模块 |
| 19 | $schedule->command('template_label')->dailyAt('01:00')->withoutOverlapping(1);//最新模块 | 19 | $schedule->command('template_label')->dailyAt('01:00')->withoutOverlapping(1);//最新模块 |
| 20 | + $schedule->command('popular_template_label')->dailyAt('01:30')->withoutOverlapping(1);//热门模块 | ||
| 20 | // $schedule->command('inspire')->hourly(); | 21 | // $schedule->command('inspire')->hourly(); |
| 21 | $schedule->command('remain_day')->dailyAt('09:00')->withoutOverlapping(1); // 项目剩余服务时长 | 22 | $schedule->command('remain_day')->dailyAt('09:00')->withoutOverlapping(1); // 项目剩余服务时长 |
| 22 | $schedule->command('rank_data_task')->everyMinute()->withoutOverlapping(1); // 排名数据更新任务 | 23 | $schedule->command('rank_data_task')->everyMinute()->withoutOverlapping(1); // 排名数据更新任务 |
-
请 注册 或 登录 后发表评论