作者 赵彬吉

update

... ... @@ -235,7 +235,7 @@ class RankDataLogic extends BaseLogic
//复制站点域名
$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'] ?? ''));//关联域名
$main_domain = str_replace('www.', '', $this->getExtendProjects($api_no)['url'] ?? '');
//关联域名
$relate_domain = str_replace('www.', '', InquiryRelateDomain::getRelateDomain($domain, 'globalso_domain'));
... ... @@ -266,11 +266,11 @@ class RankDataLogic extends BaseLogic
$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'];
}
... ...