作者 Your Name
@@ -20,14 +20,14 @@ class Kernel extends ConsoleKernel @@ -20,14 +20,14 @@ class Kernel extends ConsoleKernel
20 $schedule->command('template_label')->dailyAt('01:00')->withoutOverlapping(1);//最新模块 20 $schedule->command('template_label')->dailyAt('01:00')->withoutOverlapping(1);//最新模块
21 $schedule->command('popular_template_label')->dailyAt('01:30')->withoutOverlapping(1);//热门模块 21 $schedule->command('popular_template_label')->dailyAt('01:30')->withoutOverlapping(1);//热门模块
22 // $schedule->command('inspire')->hourly(); 22 // $schedule->command('inspire')->hourly();
23 - $schedule->command('remain_day')->dailyAt('09:30')->withoutOverlapping(1); // 项目剩余服务时长 23 +// $schedule->command('remain_day')->dailyAt('09:30')->withoutOverlapping(1); // 项目剩余服务时长
24 $schedule->command('rank_data_task')->everyMinute()->withoutOverlapping(1); // 排名数据更新任务 24 $schedule->command('rank_data_task')->everyMinute()->withoutOverlapping(1); // 排名数据更新任务
25 $schedule->command('service_count')->dailyAt('01:00')->withoutOverlapping(1); //服务器使用情况,每天凌晨1点执行一次 25 $schedule->command('service_count')->dailyAt('01:00')->withoutOverlapping(1); //服务器使用情况,每天凌晨1点执行一次
26 - $schedule->command('web_traffic_special')->everyMinute()->withoutOverlapping(1); // 特殊引流  
27 - $schedule->command('web_traffic_russia_special')->everyMinute()->withoutOverlapping(1); // 特殊引流 26 +// $schedule->command('web_traffic_special')->everyMinute()->withoutOverlapping(1); // 特殊引流
  27 +// $schedule->command('web_traffic_russia_special')->everyMinute()->withoutOverlapping(1); // 特殊引流
28 $schedule->command('sync_channel')->dailyAt('06:00')->withoutOverlapping(1); // 渠道信息,每天执行一次 28 $schedule->command('sync_channel')->dailyAt('06:00')->withoutOverlapping(1); // 渠道信息,每天执行一次
29 $schedule->command('forward_count')->monthlyOn(1,'01:00')->withoutOverlapping(1);//没月月初1号执行月统计转发询盘记录 29 $schedule->command('forward_count')->monthlyOn(1,'01:00')->withoutOverlapping(1);//没月月初1号执行月统计转发询盘记录
30 - $schedule->command('inquiry_delay')->everyMinute()->withoutOverlapping(1);//TODO::上线放开,转发询盘,每分钟执行一次 30 +// $schedule->command('inquiry_delay')->everyMinute()->withoutOverlapping(1);//TODO::上线放开,转发询盘,每分钟执行一次
31 $schedule->command('inquiry_count')->dailyAt('01:00')->withoutOverlapping(1); // 询盘统计数据,每天凌晨执行一次 31 $schedule->command('inquiry_count')->dailyAt('01:00')->withoutOverlapping(1); // 询盘统计数据,每天凌晨执行一次
32 // $schedule->command('domain_info')->dailyAt('01:20')->withoutOverlapping(1);// 更新域名|证书结束时间,每天凌晨1点执行一次 32 // $schedule->command('domain_info')->dailyAt('01:20')->withoutOverlapping(1);// 更新域名|证书结束时间,每天凌晨1点执行一次
33 $schedule->command('share_user')->dailyAt('01:20')->withoutOverlapping(1);// 每天凌晨1点执行一次 33 $schedule->command('share_user')->dailyAt('01:20')->withoutOverlapping(1);// 每天凌晨1点执行一次
@@ -36,13 +36,13 @@ class AdsController extends BaseController @@ -36,13 +36,13 @@ class AdsController extends BaseController
36 { 36 {
37 $ads_id = trim($request->input('ads_id')); 37 $ads_id = trim($request->input('ads_id'));
38 $industry = trim($request->input('industry')); 38 $industry = trim($request->input('industry'));
39 - $result = ReInquiryTask::where(['status' => ReInquiryTask::STATUS_OPEN])  
40 - ->when($ads_id, function ($query, $ads_id) { 39 + $result = ReInquiryTask::when($ads_id, function ($query, $ads_id) {
41 return $query->where('ad_id', 'like', '%' . $ads_id . '%'); 40 return $query->where('ad_id', 'like', '%' . $ads_id . '%');
42 }) 41 })
43 ->when($industry, function ($query, $industry) { 42 ->when($industry, function ($query, $industry) {
44 return $query->where('industry', $industry); 43 return $query->where('industry', $industry);
45 }) 44 })
  45 +// ->where(['status' => ReInquiryTask::STATUS_OPEN])
46 ->orderBy('id', 'desc') 46 ->orderBy('id', 'desc')
47 ->paginate(); 47 ->paginate();
48 48