作者 赵彬吉

update

... ... @@ -291,7 +291,7 @@ class OptimizationReportController extends BaseController
//复制站点域名
$ext_projects = $this->getExtendProjects();
$flg_ext = $this->getExtFlag($ext_projects, $domain, $api_no);
$ext_domain = str_replace('www.', '', $this->getExtendProjects($api_no)['ext'] ?? '');//关联域名
$ext_domain = explode(',', str_replace('www.', '', $this->getExtendProjects($api_no)['ext'] ?? ''));//关联域名
//关联域名
$relate_domain = str_replace('www.', '', InquiryRelateDomain::getRelateDomain($domain, 'globalso_domain'));
//AI站点域名
... ... @@ -316,11 +316,11 @@ class OptimizationReportController extends BaseController
$domain_text = 'AI域名:' . $last['r'];
if (in_array($flg_ext, [1, 2]) || $flg_ai == 1) {
if ($last['r'] == $ai_domain) {
$domain_text = '星链域名:' . $ai_domain;
} else if ($last['r'] == $ext_domain) {
$domain_text = '主域名2:' . $ext_domain;
$domain_text = '星链域名:' . $last['r'];
} else if (in_array($last['r'], $ext_domain)) {
$domain_text = '主域名2:' . $last['r'];
} else if ($last['r'] == $relate_domain) {
$domain_text = '主域名2:' . $relate_domain;
$domain_text = '主域名2:' . $last['r'];
} else {
$domain_text = 'AI域名:' . $last['r'];
}
... ...