|
...
|
...
|
@@ -66,12 +66,12 @@ class GeoCount extends Command |
|
|
|
$platforms = ['gemini','openai','deepseek','poe','perplexity','google_ai_overview','openai-not-network','claude'];
|
|
|
|
foreach ($project_id as $item){
|
|
|
|
$projectModel = new Project();
|
|
|
|
$geo_qualify_day = $projectModel->getValue(['id'=>$item],'geo_qualify_day');
|
|
|
|
$geo_qualify_num = $projectModel->getValue(['id'=>$item],'geo_qualify_num');
|
|
|
|
$this->output('执行的项目ID----'.$item);
|
|
|
|
//收录总数
|
|
|
|
$total = $geoQuestionResModel->counts(['project_id' => $item,'hit'=>['!=',0],'created_at' => ['between',[$start,$end]]]);
|
|
|
|
$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){
|
|
|
|
if($qualify_total > $geo_qualify_num){
|
|
|
|
$is_qualify = 1;
|
|
|
|
}
|
|
|
|
$data = [
|
...
|
...
|
|