作者 赵彬吉

update

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