正在显示
1 个修改的文件
包含
5 行增加
和
1 行删除
| @@ -23,6 +23,7 @@ use App\Models\Devops\Servers; | @@ -23,6 +23,7 @@ use App\Models\Devops\Servers; | ||
| 23 | use App\Models\Devops\ServersIp; | 23 | use App\Models\Devops\ServersIp; |
| 24 | use App\Models\Domain\DomainInfo; | 24 | use App\Models\Domain\DomainInfo; |
| 25 | use App\Models\Domain\DomainInfo as DomainInfoModel; | 25 | use App\Models\Domain\DomainInfo as DomainInfoModel; |
| 26 | +use App\Models\Geo\GeoQuestionResult; | ||
| 26 | use App\Models\Industry\ProjectIndustryRelated; | 27 | use App\Models\Industry\ProjectIndustryRelated; |
| 27 | use App\Models\Inquiry\InquiryIP; | 28 | use App\Models\Inquiry\InquiryIP; |
| 28 | use App\Models\Inquiry\InquirySet; | 29 | use App\Models\Inquiry\InquirySet; |
| @@ -122,7 +123,10 @@ class ProjectLogic extends BaseLogic | @@ -122,7 +123,10 @@ class ProjectLogic extends BaseLogic | ||
| 122 | $info['collect_test_domain'] = $info['is_upgrade'] ? CollectLog::getCollectTestDomain($id) : ''; | 123 | $info['collect_test_domain'] = $info['is_upgrade'] ? CollectLog::getCollectTestDomain($id) : ''; |
| 123 | //获取项目所属行业 | 124 | //获取项目所属行业 |
| 124 | $info['deploy_optimize']['industry'] = ProjectIndustryRelated::where('project_id', $id)->pluck('industry_id')->toArray(); | 125 | $info['deploy_optimize']['industry'] = ProjectIndustryRelated::where('project_id', $id)->pluck('industry_id')->toArray(); |
| 125 | - | 126 | + $questionModel = new GeoQuestionResult(); |
| 127 | + $info['question_qualify_count'] = $questionModel->where('project_id', $id) | ||
| 128 | + ->where('hit','!=',0)->whereIn('platform',['openai', 'gemini','google_ai_overview']) | ||
| 129 | + ->count(); | ||
| 126 | return $this->success($info); | 130 | return $this->success($info); |
| 127 | } | 131 | } |
| 128 | 132 |
-
请 注册 或 登录 后发表评论