|
...
|
...
|
@@ -219,7 +219,7 @@ class Test extends Command |
|
|
|
->get();
|
|
|
|
//其他地方在引流的域名
|
|
|
|
$other = DB::connection('projects_mysql')->table('projects')->where('switch', 1)->pluck('domain')->toArray();
|
|
|
|
|
|
|
|
$data = [];
|
|
|
|
foreach ($list as $project) {
|
|
|
|
$lang = WebLanguage::getLangById($project['main_lang_id']??1)['short'];
|
|
|
|
if(empty($project->domainInfo['domain'])){
|
|
...
|
...
|
@@ -229,15 +229,13 @@ class Test extends Command |
|
|
|
if(in_array($project->domainInfo['domain'], $other)){
|
|
|
|
continue;
|
|
|
|
}
|
|
|
|
$data = [
|
|
|
|
$data[] = [
|
|
|
|
'project_id' => $project['project_id'],
|
|
|
|
'domain' => 'https://' . $project->domainInfo['domain'] . '/',
|
|
|
|
'lang' => $lang
|
|
|
|
];
|
|
|
|
|
|
|
|
Redis::lpush('web_traffic_fix', json_encode($data));
|
|
|
|
}
|
|
|
|
return true;
|
|
|
|
return $data;
|
|
|
|
}
|
|
|
|
/**
|
|
|
|
* @name :(统计pv)pv_num
|
...
|
...
|
|