正在显示
1 个修改的文件
包含
5 行增加
和
5 行删除
| @@ -235,7 +235,7 @@ class RankDataLogic extends BaseLogic | @@ -235,7 +235,7 @@ class RankDataLogic extends BaseLogic | ||
| 235 | //复制站点域名 | 235 | //复制站点域名 |
| 236 | $ext_projects = $this->getExtendProjects(); | 236 | $ext_projects = $this->getExtendProjects(); |
| 237 | $flg_ext = $this->getExtFlag($ext_projects, $domain, $api_no); | 237 | $flg_ext = $this->getExtFlag($ext_projects, $domain, $api_no); |
| 238 | - $ext_domain = str_replace('www.', '', $this->getExtendProjects($api_no)['ext'] ?? ''); | 238 | + $ext_domain = explode(',', str_replace('www.', '', $this->getExtendProjects($api_no)['ext'] ?? ''));//关联域名 |
| 239 | $main_domain = str_replace('www.', '', $this->getExtendProjects($api_no)['url'] ?? ''); | 239 | $main_domain = str_replace('www.', '', $this->getExtendProjects($api_no)['url'] ?? ''); |
| 240 | //关联域名 | 240 | //关联域名 |
| 241 | $relate_domain = str_replace('www.', '', InquiryRelateDomain::getRelateDomain($domain, 'globalso_domain')); | 241 | $relate_domain = str_replace('www.', '', InquiryRelateDomain::getRelateDomain($domain, 'globalso_domain')); |
| @@ -266,11 +266,11 @@ class RankDataLogic extends BaseLogic | @@ -266,11 +266,11 @@ class RankDataLogic extends BaseLogic | ||
| 266 | $domain_text = 'AI域名:' . $last['r']; | 266 | $domain_text = 'AI域名:' . $last['r']; |
| 267 | if (in_array($flg_ext, [1, 2]) || $flg_ai == 1) { | 267 | if (in_array($flg_ext, [1, 2]) || $flg_ai == 1) { |
| 268 | if ($last['r'] == $ai_domain) { | 268 | if ($last['r'] == $ai_domain) { |
| 269 | - $domain_text = '星链域名:' . $ai_domain; | ||
| 270 | - } else if ($last['r'] == $ext_domain) { | ||
| 271 | - $domain_text = '主域名2:' . $ext_domain; | 269 | + $domain_text = '星链域名:' . $last['r']; |
| 270 | + } else if (in_array($last['r'], $ext_domain)) { | ||
| 271 | + $domain_text = '主域名2:' . $last['r']; | ||
| 272 | } else if ($last['r'] == $relate_domain) { | 272 | } else if ($last['r'] == $relate_domain) { |
| 273 | - $domain_text = '主域名2:' . $relate_domain; | 273 | + $domain_text = '主域名2:' . $last['r']; |
| 274 | } else { | 274 | } else { |
| 275 | $domain_text = 'AI域名:' . $last['r']; | 275 | $domain_text = 'AI域名:' . $last['r']; |
| 276 | } | 276 | } |
-
请 注册 或 登录 后发表评论