作者 赵彬吉

update

@@ -16,6 +16,7 @@ use App\Models\Domain\DomainInfo; @@ -16,6 +16,7 @@ use App\Models\Domain\DomainInfo;
16 use App\Models\HomeCount\Count; 16 use App\Models\HomeCount\Count;
17 use App\Models\HomeCount\MonthCount; 17 use App\Models\HomeCount\MonthCount;
18 use App\Models\Inquiry\InquiryFormData; 18 use App\Models\Inquiry\InquiryFormData;
  19 +use App\Models\Inquiry\InquiryRelateDomain;
19 use App\Models\Project\Project; 20 use App\Models\Project\Project;
20 use App\Models\RankData\ExternalLinks; 21 use App\Models\RankData\ExternalLinks;
21 use App\Models\RankData\IndexedPages; 22 use App\Models\RankData\IndexedPages;
@@ -290,7 +291,9 @@ class OptimizationReportController extends BaseController @@ -290,7 +291,9 @@ class OptimizationReportController extends BaseController
290 //复制站点域名 291 //复制站点域名
291 $ext_projects = $this->getExtendProjects(); 292 $ext_projects = $this->getExtendProjects();
292 $flg_ext = $this->getExtFlag($ext_projects, $domain, $api_no); 293 $flg_ext = $this->getExtFlag($ext_projects, $domain, $api_no);
293 - $ext_domain = str_replace('www.', '', $this->getExtendProjects($api_no)['ext'] ?? ''); 294 + $ext_domain = str_replace('www.', '', $this->getExtendProjects($api_no)['ext'] ?? '');//关联域名
  295 + //关联域名
  296 + $relate_domain = str_replace('www.', '', InquiryRelateDomain::getRelateDomain($domain)['globalso_domain']??"");
294 //AI站点域名 297 //AI站点域名
295 $ai_projects = $this->getAiProjects()['data'] ?? []; 298 $ai_projects = $this->getAiProjects()['data'] ?? [];
296 $flg_ai = $this->getAiFlag($ai_projects, $domain); 299 $flg_ai = $this->getAiFlag($ai_projects, $domain);
@@ -316,6 +319,8 @@ class OptimizationReportController extends BaseController @@ -316,6 +319,8 @@ class OptimizationReportController extends BaseController
316 $domain_text = '星链域名:' . $ai_domain; 319 $domain_text = '星链域名:' . $ai_domain;
317 } else if ($last['r'] == $ext_domain) { 320 } else if ($last['r'] == $ext_domain) {
318 $domain_text = '主域名2:' . $ext_domain; 321 $domain_text = '主域名2:' . $ext_domain;
  322 + } else if ($last['r'] == $relate_domain) {
  323 + $domain_text = '主域名2:' . $relate_domain;
319 } else { 324 } else {
320 $domain_text = 'AI域名:' . $last['r']; 325 $domain_text = 'AI域名:' . $last['r'];
321 } 326 }
@@ -11,6 +11,7 @@ use App\Http\Logic\Aside\Project\DomainInfoLogic; @@ -11,6 +11,7 @@ use App\Http\Logic\Aside\Project\DomainInfoLogic;
11 use App\Http\Logic\Aside\Project\ProjectLogic; 11 use App\Http\Logic\Aside\Project\ProjectLogic;
12 use App\Http\Logic\Bside\BaseLogic; 12 use App\Http\Logic\Bside\BaseLogic;
13 use App\Models\Domain\DomainInfo; 13 use App\Models\Domain\DomainInfo;
  14 +use App\Models\Inquiry\InquiryRelateDomain;
14 use App\Models\Project\DeployBuild; 15 use App\Models\Project\DeployBuild;
15 use App\Models\Project\DeployOptimize; 16 use App\Models\Project\DeployOptimize;
16 use App\Models\Project\MinorLanguages; 17 use App\Models\Project\MinorLanguages;
@@ -233,6 +234,8 @@ class RankDataLogic extends BaseLogic @@ -233,6 +234,8 @@ class RankDataLogic extends BaseLogic
233 $flg_ext = $this->getExtFlag($ext_projects, $domain, $api_no); 234 $flg_ext = $this->getExtFlag($ext_projects, $domain, $api_no);
234 $ext_domain = str_replace('www.', '', $this->getExtendProjects($api_no)['ext'] ?? ''); 235 $ext_domain = str_replace('www.', '', $this->getExtendProjects($api_no)['ext'] ?? '');
235 $main_domain = str_replace('www.', '', $this->getExtendProjects($api_no)['url'] ?? ''); 236 $main_domain = str_replace('www.', '', $this->getExtendProjects($api_no)['url'] ?? '');
  237 + //关联域名
  238 + $relate_domain = str_replace('www.', '', InquiryRelateDomain::getRelateDomain($domain)['globalso_domain']??"");
236 //AI站点域名 239 //AI站点域名
237 $ai_projects = $this->getAiProjects()['data'] ?? []; 240 $ai_projects = $this->getAiProjects()['data'] ?? [];
238 $flg_ai = $this->getAiFlag($ai_projects, $domain); 241 $flg_ai = $this->getAiFlag($ai_projects, $domain);
@@ -263,6 +266,8 @@ class RankDataLogic extends BaseLogic @@ -263,6 +266,8 @@ class RankDataLogic extends BaseLogic
263 $domain_text = '星链域名:' . $ai_domain; 266 $domain_text = '星链域名:' . $ai_domain;
264 } else if ($last['r'] == $ext_domain) { 267 } else if ($last['r'] == $ext_domain) {
265 $domain_text = '主域名2:' . $ext_domain; 268 $domain_text = '主域名2:' . $ext_domain;
  269 + } else if ($last['r'] == $relate_domain) {
  270 + $domain_text = '主域名2:' . $relate_domain;
266 } else { 271 } else {
267 $domain_text = 'AI域名:' . $last['r']; 272 $domain_text = 'AI域名:' . $last['r'];
268 } 273 }