作者 赵彬吉

update

@@ -165,6 +165,8 @@ class WebTraffic extends Command @@ -165,6 +165,8 @@ class WebTraffic extends Command
165 try { 165 try {
166 $type = $this->argument('type'); 166 $type = $this->argument('type');
167 167
  168 + Log::channel('traffic')->info('开始运行:' . $type);
  169 +
168 $this->sleep($type); 170 $this->sleep($type);
169 171
170 $page = 1; 172 $page = 1;
@@ -314,7 +316,7 @@ class WebTraffic extends Command @@ -314,7 +316,7 @@ class WebTraffic extends Command
314 $startTime = Carbon::now()->addMonths(-9)->startOfDay()->toDateTimeString(); 316 $startTime = Carbon::now()->addMonths(-9)->startOfDay()->toDateTimeString();
315 $query->where('pdo.start_date', '<', $startTime); 317 $query->where('pdo.start_date', '<', $startTime);
316 } 318 }
317 - })->select(['pdo.project_id','gl_project.main_lang_id','gl_project.id'])->forPage($page, 500)->get(); 319 + })->select(['pdo.project_id','gl_project.main_lang_id','gl_project.id'])->forPage($page, 500)->dd();
318 //其他地方在引流的域名 320 //其他地方在引流的域名
319 $other = DB::connection('projects_mysql')->table('projects')->where('switch', 1)->pluck('domain')->toArray(); 321 $other = DB::connection('projects_mysql')->table('projects')->where('switch', 1)->pluck('domain')->toArray();
320 $data = []; 322 $data = [];