正在显示
3 个修改的文件
包含
8 行增加
和
1 行删除
| @@ -70,7 +70,8 @@ class GeoCount extends Command | @@ -70,7 +70,8 @@ class GeoCount extends Command | ||
| 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]]]); |
| 73 | - if($total > $geo_qualify_day){ | 73 | + $qualify_total = $geoQuestionResModel->counts(['platform'=>['in',['openai', 'gemini','google_ai_overview']],'project_id' => $item,'hit'=>['!=',0],'created_at' => ['between',[$start,$end]]]); |
| 74 | + if($qualify_total > $geo_qualify_day){ | ||
| 74 | $is_qualify = 1; | 75 | $is_qualify = 1; |
| 75 | } | 76 | } |
| 76 | $data = [ | 77 | $data = [ |
| @@ -80,6 +81,7 @@ class GeoCount extends Command | @@ -80,6 +81,7 @@ class GeoCount extends Command | ||
| 80 | 'updated_at' => Carbon::now()->format('Y-m-d H:i:s'), | 81 | 'updated_at' => Carbon::now()->format('Y-m-d H:i:s'), |
| 81 | 'total'=>$total,//收录总数 | 82 | 'total'=>$total,//收录总数 |
| 82 | 'is_qualify'=>$is_qualify, | 83 | 'is_qualify'=>$is_qualify, |
| 84 | + 'qualify_total'=>$qualify_total | ||
| 83 | ]; | 85 | ]; |
| 84 | foreach ($platforms as $platform){ | 86 | foreach ($platforms as $platform){ |
| 85 | if($platform == 'openai-not-network'){ | 87 | if($platform == 'openai-not-network'){ |
| @@ -74,6 +74,7 @@ class GeoCountAll extends Command | @@ -74,6 +74,7 @@ class GeoCountAll extends Command | ||
| 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]]]); |
| 77 | + $qualify_total = $geoQuestionResModel->counts(['platform'=>['in',['openai', 'gemini','google_ai_overview']],'project_id' => $item,'hit'=>['!=',0],'created_at' => ['between',[$start,$end]]]); | ||
| 77 | if($total > $geo_qualify_day){ | 78 | if($total > $geo_qualify_day){ |
| 78 | $is_qualify = 1; | 79 | $is_qualify = 1; |
| 79 | } | 80 | } |
| @@ -84,6 +85,7 @@ class GeoCountAll extends Command | @@ -84,6 +85,7 @@ class GeoCountAll extends Command | ||
| 84 | 'updated_at' => Carbon::now()->format('Y-m-d H:i:s'), | 85 | 'updated_at' => Carbon::now()->format('Y-m-d H:i:s'), |
| 85 | 'total'=>$total,//收录总数 | 86 | 'total'=>$total,//收录总数 |
| 86 | 'is_qualify'=>$is_qualify, | 87 | 'is_qualify'=>$is_qualify, |
| 88 | + 'qualify_total'=>$qualify_total | ||
| 87 | ]; | 89 | ]; |
| 88 | foreach ($platforms as $platform){ | 90 | foreach ($platforms as $platform){ |
| 89 | if($platform == 'openai-not-network'){ | 91 | if($platform == 'openai-not-network'){ |
| @@ -102,6 +102,9 @@ class CountLogic extends BaseLogic | @@ -102,6 +102,9 @@ class CountLogic extends BaseLogic | ||
| 102 | */ | 102 | */ |
| 103 | public function keyword_data_count(){ | 103 | public function keyword_data_count(){ |
| 104 | $version = $this->project['version'] ?? ''; | 104 | $version = $this->project['version'] ?? ''; |
| 105 | + if(!empty($version) && $version != '7.5'){ | ||
| 106 | + | ||
| 107 | + } | ||
| 105 | $yesterday = date('Y-m-d'); | 108 | $yesterday = date('Y-m-d'); |
| 106 | $rankDataModel = new RankDataModel(); | 109 | $rankDataModel = new RankDataModel(); |
| 107 | $param = [ | 110 | $param = [ |
-
请 注册 或 登录 后发表评论