作者 lyh

变更数据

@@ -62,11 +62,11 @@ class GeoCount extends Command @@ -62,11 +62,11 @@ class GeoCount extends Command
62 if(empty($project_id)){ 62 if(empty($project_id)){
63 return true; 63 return true;
64 } 64 }
65 - $projectModel = new Project();  
66 - $geo_qualify_day = $projectModel->getValue(['id'=>$project_id],'geo_qualify_day');  
67 $geoQuestionResModel = new GeoQuestionResult(); 65 $geoQuestionResModel = new GeoQuestionResult();
68 $platforms = ['gemini','openai','deepseek','poe','perplexity','google_ai_overview','openai-not-network','claude']; 66 $platforms = ['gemini','openai','deepseek','poe','perplexity','google_ai_overview','openai-not-network','claude'];
69 foreach ($project_id as $item){ 67 foreach ($project_id as $item){
  68 + $projectModel = new Project();
  69 + $geo_qualify_day = $projectModel->getValue(['id'=>$item],'geo_qualify_day');
70 $this->output('执行的项目ID----'.$item); 70 $this->output('执行的项目ID----'.$item);
71 //收录总数 71 //收录总数
72 $total = $geoQuestionResModel->counts(['project_id' => $item,'hit'=>['!=',0],'created_at' => ['between',[$start,$end]]]); 72 $total = $geoQuestionResModel->counts(['project_id' => $item,'hit'=>['!=',0],'created_at' => ['between',[$start,$end]]]);
@@ -66,11 +66,11 @@ class GeoCountAll extends Command @@ -66,11 +66,11 @@ class GeoCountAll extends Command
66 if(empty($project_id)){ 66 if(empty($project_id)){
67 return true; 67 return true;
68 } 68 }
69 - $projectModel = new Project();  
70 - $geo_qualify_day = $projectModel->getValue(['id'=>$project_id],'geo_qualify_day');  
71 $geoQuestionResModel = new GeoQuestionLog(); 69 $geoQuestionResModel = new GeoQuestionLog();
72 $platforms = ['gemini','openai','deepseek','poe','perplexity','google_ai_overview','openai-not-network','claude']; 70 $platforms = ['gemini','openai','deepseek','poe','perplexity','google_ai_overview','openai-not-network','claude'];
73 foreach ($project_id as $item){ 71 foreach ($project_id as $item){
  72 + $projectModel = new Project();
  73 + $geo_qualify_day = $projectModel->getValue(['id'=>$item],'geo_qualify_day');
74 $this->output('执行的项目ID----'.$item); 74 $this->output('执行的项目ID----'.$item);
75 //收录总数 75 //收录总数
76 $total = $geoQuestionResModel->counts(['project_id' => $item,'hit'=>['!=',0],'created_at' => ['between',[$start,$end]]]); 76 $total = $geoQuestionResModel->counts(['project_id' => $item,'hit'=>['!=',0],'created_at' => ['between',[$start,$end]]]);