作者 lyh

gx

... ... @@ -39,7 +39,7 @@ class TemplateLabel extends Command
*/
public function handle(){
//获取最近7天模版的记录
$start_time = now()->subDays(7)->startOfDay()->toDateString();
$start_time = now()->subDays(90)->startOfDay()->toDateString();
$end_time = now()->startOfDay()->toDateString();
$this->setTemplateModule($start_time,$end_time);
$this->setTemplate($start_time,$end_time);
... ...
... ... @@ -17,6 +17,7 @@ class Kernel extends ConsoleKernel
{
// 每日更新最新模块
$schedule->command('template_label')->dailyAt('01:00')->withoutOverlapping(1);//最新模块
$schedule->command('popular_template_label')->dailyAt('01:30')->withoutOverlapping(1);//热门模块
// $schedule->command('inspire')->hourly();
$schedule->command('remain_day')->dailyAt('09:00')->withoutOverlapping(1); // 项目剩余服务时长
$schedule->command('rank_data_task')->everyMinute()->withoutOverlapping(1); // 排名数据更新任务
... ...