作者 lyh

变更数据

@@ -65,7 +65,7 @@ class GeoCountAll extends Command @@ -65,7 +65,7 @@ class GeoCountAll extends Command
65 if(empty($project_id)){ 65 if(empty($project_id)){
66 return true; 66 return true;
67 } 67 }
68 - $geoQuestionResModel = new GeoQuestionResult(); 68 + $geoQuestionResModel = new GeoQuestionLog();
69 $platforms = ['gemini','openai','deepseek','poe','perplexity','google_ai_overview','openai-not-network','claude']; 69 $platforms = ['gemini','openai','deepseek','poe','perplexity','google_ai_overview','openai-not-network','claude'];
70 foreach ($project_id as $item){ 70 foreach ($project_id as $item){
71 $this->output('执行的项目ID----'.$item); 71 $this->output('执行的项目ID----'.$item);
@@ -89,6 +89,8 @@ class GeoCountAll extends Command @@ -89,6 +89,8 @@ class GeoCountAll extends Command
89 if($info === false){ 89 if($info === false){
90 //新增一条数据 90 //新增一条数据
91 $geoCountModel->addReturnId($data); 91 $geoCountModel->addReturnId($data);
  92 + }else{
  93 + $geoCountModel->edit($data,['id'=>$info['id']]);
92 } 94 }
93 } 95 }
94 } 96 }