作者 lyh

gx数据

@@ -19,20 +19,16 @@ class Kernel extends ConsoleKernel @@ -19,20 +19,16 @@ class Kernel extends ConsoleKernel
19 // 每日更新最新模块 19 // 每日更新最新模块
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();  
23 $schedule->command('rank_data_task')->everyMinute()->withoutOverlapping(1); // 排名数据更新任务 22 $schedule->command('rank_data_task')->everyMinute()->withoutOverlapping(1); // 排名数据更新任务
24 $schedule->command('service_count')->dailyAt('01:00')->withoutOverlapping(1); //服务器使用情况,每天凌晨1点执行一次 23 $schedule->command('service_count')->dailyAt('01:00')->withoutOverlapping(1); //服务器使用情况,每天凌晨1点执行一次
25 -// $schedule->command('web_traffic_special')->everyMinute()->withoutOverlapping(1); // 特殊引流  
26 -// $schedule->command('web_traffic_russia_special')->everyMinute()->withoutOverlapping(1); // 特殊引流  
27 $schedule->command('sync_channel')->dailyAt('06:00')->withoutOverlapping(1); // 渠道信息,每天执行一次 24 $schedule->command('sync_channel')->dailyAt('06:00')->withoutOverlapping(1); // 渠道信息,每天执行一次
28 $schedule->command('inquiry_count')->dailyAt('01:00')->withoutOverlapping(1); // 询盘统计数据,每天凌晨执行一次 25 $schedule->command('inquiry_count')->dailyAt('01:00')->withoutOverlapping(1); // 询盘统计数据,每天凌晨执行一次
29 -// $schedule->command('domain_info')->dailyAt('01:20')->withoutOverlapping(1);// 更新域名|证书结束时间,每天凌晨1点执行一次  
30 $schedule->command('share_user')->dailyAt('01:20')->withoutOverlapping(1);// 每天凌晨1点执行一次 26 $schedule->command('share_user')->dailyAt('01:20')->withoutOverlapping(1);// 每天凌晨1点执行一次
31 $schedule->command('last_inquiry')->dailyAt('04:00')->withoutOverlapping(1);// 最近一次询盘信息 27 $schedule->command('last_inquiry')->dailyAt('04:00')->withoutOverlapping(1);// 最近一次询盘信息
32 $schedule->command('update_seo_tdk_crontab')->dailyAt('20:00')->withoutOverlapping(1); //更新上线项目TDK 28 $schedule->command('update_seo_tdk_crontab')->dailyAt('20:00')->withoutOverlapping(1); //更新上线项目TDK
33 $schedule->command('sync_manager')->dailyAt('01:00')->withoutOverlapping(1); //TODO::手机号码同步 每天执行一次 29 $schedule->command('sync_manager')->dailyAt('01:00')->withoutOverlapping(1); //TODO::手机号码同步 每天执行一次
34 $schedule->command('update_keyword_route')->dailyAt('01:00')->withoutOverlapping(1); //升级项目--清除路由相同的关键字 30 $schedule->command('update_keyword_route')->dailyAt('01:00')->withoutOverlapping(1); //升级项目--清除路由相同的关键字
35 - $schedule->command('recommended_suppliers')->dailyAt('03:00')->withoutOverlapping(1); //每天凌晨1点执行一次生成推荐商 31 +// $schedule->command('recommended_suppliers')->dailyAt('03:00')->withoutOverlapping(1); //每天凌晨1点执行一次生成推荐商
36 $schedule->command('update_keyword_content')->hourly()->withoutOverlapping(1); 32 $schedule->command('update_keyword_content')->hourly()->withoutOverlapping(1);
37 // 每日推送已完成视频任务项目生成对应界面 33 // 每日推送已完成视频任务项目生成对应界面
38 //更新AI站点数据 34 //更新AI站点数据
@@ -41,9 +37,6 @@ class Kernel extends ConsoleKernel @@ -41,9 +37,6 @@ class Kernel extends ConsoleKernel
41 $schedule->command('sync_inquiry_text')->dailyAt('09:00')->withoutOverlapping(1); 37 $schedule->command('sync_inquiry_text')->dailyAt('09:00')->withoutOverlapping(1);
42 //FB询盘费用同步 38 //FB询盘费用同步
43 $schedule->command('sync_ad_cost')->everyThirtyMinutes()->withoutOverlapping(1); 39 $schedule->command('sync_ad_cost')->everyThirtyMinutes()->withoutOverlapping(1);
44 -  
45 -// $schedule->command('ai_blog_auto_publish auto_open')->everyMinute()->withoutOverlapping(1);  
46 -// $schedule->command('ai_blog_auto_publish auto_publish')->dailyAt('07:00')->withoutOverlapping(1);  
47 } 40 }
48 41
49 /** 42 /**
@@ -136,6 +136,9 @@ class ProductController extends BaseController @@ -136,6 +136,9 @@ class ProductController extends BaseController
136 'id.required' => 'ID不能为空' 136 'id.required' => 'ID不能为空'
137 ]); 137 ]);
138 $info = $product->read(['id'=>$this->param['id']]); 138 $info = $product->read(['id'=>$this->param['id']]);
  139 + if($info === false){
  140 + $this->fail('当前数据不存在,或已被删除');
  141 + }
139 $info = $this->handleParam($info); 142 $info = $this->handleParam($info);
140 return $this->response('success',Code::SUCCESS,$info); 143 return $this->response('success',Code::SUCCESS,$info);
141 } 144 }