正在显示
1 个修改的文件
包含
2 行增加
和
5 行删除
| @@ -90,7 +90,7 @@ class DomainInfo extends Command | @@ -90,7 +90,7 @@ class DomainInfo extends Command | ||
| 90 | $host = $domain_array['host'] ?? $domain_array['path']; | 90 | $host = $domain_array['host'] ?? $domain_array['path']; |
| 91 | $host_array = explode('.', $host); | 91 | $host_array = explode('.', $host); |
| 92 | 92 | ||
| 93 | - //判断泛域名解析情况,并更改项目泛域名解析状态 | 93 | + //判断是否解析泛域名,并更改项目泛域名解析状态 |
| 94 | $host_array_any = $host_array; | 94 | $host_array_any = $host_array; |
| 95 | if (count($host_array_any) <= 2) { | 95 | if (count($host_array_any) <= 2) { |
| 96 | array_unshift($host_array_any, '*'); | 96 | array_unshift($host_array_any, '*'); |
| @@ -100,11 +100,8 @@ class DomainInfo extends Command | @@ -100,11 +100,8 @@ class DomainInfo extends Command | ||
| 100 | $any_domain = implode('.', $host_array_any); | 100 | $any_domain = implode('.', $host_array_any); |
| 101 | $rand_str = generateRandomString(3); | 101 | $rand_str = generateRandomString(3); |
| 102 | if (check_domain_record(str_replace('*', $rand_str, $any_domain), $servers_ip_info)) { | 102 | if (check_domain_record(str_replace('*', $rand_str, $any_domain), $servers_ip_info)) { |
| 103 | - $is_analysis = 1; | ||
| 104 | - } else { | ||
| 105 | - $is_analysis = 0; | 103 | + $projectModel->edit(['is_analysis' => 1], ['id' => $v['project_id']]); |
| 106 | } | 104 | } |
| 107 | - $projectModel->edit(['is_analysis' => $is_analysis], ['id' => $v['project_id']]); | ||
| 108 | 105 | ||
| 109 | if ($servers_ip_info['servers_id'] == ServerConfig::SELF_SITE_ID) { | 106 | if ($servers_ip_info['servers_id'] == ServerConfig::SELF_SITE_ID) { |
| 110 | //自建站项目,直接获取主站证书有效期并更新 | 107 | //自建站项目,直接获取主站证书有效期并更新 |
-
请 注册 或 登录 后发表评论