|
...
|
...
|
@@ -70,7 +70,8 @@ class GeoCount extends Command |
|
|
|
$this->output('执行的项目ID----'.$item);
|
|
|
|
//收录总数
|
|
|
|
$total = $geoQuestionResModel->counts(['project_id' => $item,'hit'=>['!=',0],'created_at' => ['between',[$start,$end]]]);
|
|
|
|
if($total > $geo_qualify_day){
|
|
|
|
$qualify_total = $geoQuestionResModel->counts(['platform'=>['in',['openai', 'gemini','google_ai_overview']],'project_id' => $item,'hit'=>['!=',0],'created_at' => ['between',[$start,$end]]]);
|
|
|
|
if($qualify_total > $geo_qualify_day){
|
|
|
|
$is_qualify = 1;
|
|
|
|
}
|
|
|
|
$data = [
|
|
...
|
...
|
@@ -80,6 +81,7 @@ class GeoCount extends Command |
|
|
|
'updated_at' => Carbon::now()->format('Y-m-d H:i:s'),
|
|
|
|
'total'=>$total,//收录总数
|
|
|
|
'is_qualify'=>$is_qualify,
|
|
|
|
'qualify_total'=>$qualify_total
|
|
|
|
];
|
|
|
|
foreach ($platforms as $platform){
|
|
|
|
if($platform == 'openai-not-network'){
|
...
|
...
|
|