作者 lms

合并分支 'lms' 到 'develop'

Lms



查看合并请求 !8
@@ -27,23 +27,23 @@ class Kernel extends ConsoleKernel @@ -27,23 +27,23 @@ class Kernel extends ConsoleKernel
27 $schedule->command('web_traffic 1')->everyThirtyMinutes(); // 引流 1-3个月的项目,半小时一次 27 $schedule->command('web_traffic 1')->everyThirtyMinutes(); // 引流 1-3个月的项目,半小时一次
28 $schedule->command('web_traffic 2')->cron('*/18 * * * *'); // 引流 4-8个月的项目,18分钟一次 28 $schedule->command('web_traffic 2')->cron('*/18 * * * *'); // 引流 4-8个月的项目,18分钟一次
29 $schedule->command('web_traffic 3')->cron('*/12 * * * *'); // 引流 大于9个月的项目,12分钟一次 29 $schedule->command('web_traffic 3')->cron('*/12 * * * *'); // 引流 大于9个月的项目,12分钟一次
30 - // 更新域名|证书结束时间,每天凌晨1点执行一次 30 +// // 更新域名|证书结束时间,每天凌晨1点执行一次
31 // $schedule->command('domain_time')->dailyAt('01:00')->withoutOverlapping(1); 31 // $schedule->command('domain_time')->dailyAt('01:00')->withoutOverlapping(1);
32 - // B站 - 网站数据统计  
33 - // 获取当前月份最后一天  
34 - $lastDay = date('Y-m-t');  
35 - // 统计当月访问来源数据,每月最后一天23:59点执行一次  
36 - $schedule->command('statistics_source')->monthlyOn($lastDay, '23:59')->withoutOverlapping(1);  
37 - // 统计当月地域分布数据,每月最后一天23:59点执行一次  
38 - $schedule->command('statistics_distribution')->monthlyOn($lastDay, '23:59')->withoutOverlapping(1);  
39 - // 统计当月受访页面数据,每月最后一天23:59点执行一次  
40 - $schedule->command('statistics_page')->monthlyOn($lastDay, '23:59')->withoutOverlapping(1);  
41 - // 统计当月访问终端数据,每月最后一天23:59点执行一次  
42 - $schedule->command('statistics_terminal')->monthlyOn($lastDay, '23:59')->withoutOverlapping(1);  
43 - // 统计当月流量趋势数据,每月最后一天23:59点执行一次  
44 - $schedule->command('statistics_trend')->monthlyOn($lastDay, '23:59')->withoutOverlapping(1);  
45 - // 统计当天流量趋势数据,每天23:59点执行一次  
46 - $schedule->command('statistics_day_trend')->dailyAt('23:59')->withoutOverlapping(1); 32 +// // B站 - 网站数据统计
  33 +// // 获取当前月份最后一天
  34 +// $lastDay = date('Y-m-t');
  35 +// // 统计当月访问来源数据,每月最后一天23:59点执行一次
  36 +// $schedule->command('statistics_source')->monthlyOn($lastDay, '23:59')->withoutOverlapping(1);
  37 +// // 统计当月地域分布数据,每月最后一天23:59点执行一次
  38 +// $schedule->command('statistics_distribution')->monthlyOn($lastDay, '23:59')->withoutOverlapping(1);
  39 +// // 统计当月受访页面数据,每月最后一天23:59点执行一次
  40 +// $schedule->command('statistics_page')->monthlyOn($lastDay, '23:59')->withoutOverlapping(1);
  41 +// // 统计当月访问终端数据,每月最后一天23:59点执行一次
  42 +// $schedule->command('statistics_terminal')->monthlyOn($lastDay, '23:59')->withoutOverlapping(1);
  43 +// // 统计当月流量趋势数据,每月最后一天23:59点执行一次
  44 +// $schedule->command('statistics_trend')->monthlyOn($lastDay, '23:59')->withoutOverlapping(1);
  45 +// // 统计当天流量趋势数据,每天23:59点执行一次
  46 +// $schedule->command('statistics_day_trend')->dailyAt('23:59')->withoutOverlapping(1);
47 } 47 }
48 48
49 /** 49 /**
@@ -31,7 +31,7 @@ class StatisticsController extends BaseController @@ -31,7 +31,7 @@ class StatisticsController extends BaseController
31 * 访问来源 31 * 访问来源
32 * @return JsonResponse 32 * @return JsonResponse
33 * @throws ContainerExceptionInterface 33 * @throws ContainerExceptionInterface
34 - * @throws NotFoundExceptionInterface 34 + * @throws NotFoundExceptionInterface|Throwable
35 */ 35 */
36 public function source() 36 public function source()
37 { 37 {