Merge branch 'master' of http://47.244.231.31:8099/zhl/globalso-v6
正在显示
2 个修改的文件
包含
4 行增加
和
4 行删除
| @@ -81,12 +81,12 @@ class HtmlCollect extends Command | @@ -81,12 +81,12 @@ class HtmlCollect extends Command | ||
| 81 | $url_web_config = 'https://' . $collect_info->domain . '/wp-content/cache/user_config.text'; | 81 | $url_web_config = 'https://' . $collect_info->domain . '/wp-content/cache/user_config.text'; |
| 82 | $data_config = http_get($url_web_config, ['charset' => 'UTF-8']); | 82 | $data_config = http_get($url_web_config, ['charset' => 'UTF-8']); |
| 83 | if ($data_config) { | 83 | if ($data_config) { |
| 84 | - $web_url_arr = parse_url($data_config['web_url_domain']); | 84 | + $web_url_arr = parse_url($data_config['web_url_domain'] ?? ''); |
| 85 | if (isset($web_url_arr['host'])) { | 85 | if (isset($web_url_arr['host'])) { |
| 86 | $web_url_domain = $web_url_arr['host']; | 86 | $web_url_domain = $web_url_arr['host']; |
| 87 | } | 87 | } |
| 88 | 88 | ||
| 89 | - $home_url_arr = parse_url($data_config['home_url']); | 89 | + $home_url_arr = parse_url($data_config['home_url'] ?? ''); |
| 90 | if (isset($home_url_arr['host'])) { | 90 | if (isset($home_url_arr['host'])) { |
| 91 | $home_url = $home_url_arr['host']; | 91 | $home_url = $home_url_arr['host']; |
| 92 | } | 92 | } |
| @@ -80,12 +80,12 @@ class HtmlLanguageCollect extends Command | @@ -80,12 +80,12 @@ class HtmlLanguageCollect extends Command | ||
| 80 | $url_web_config = 'https://' . $collect_info->domain . '/wp-content/cache/user_config.text'; | 80 | $url_web_config = 'https://' . $collect_info->domain . '/wp-content/cache/user_config.text'; |
| 81 | $data_config = http_get($url_web_config, ['charset' => 'UTF-8']); | 81 | $data_config = http_get($url_web_config, ['charset' => 'UTF-8']); |
| 82 | if ($data_config) { | 82 | if ($data_config) { |
| 83 | - $web_url_arr = parse_url($data_config['web_url_domain']); | 83 | + $web_url_arr = parse_url($data_config['web_url_domain'] ?? ''); |
| 84 | if (isset($web_url_arr['host'])) { | 84 | if (isset($web_url_arr['host'])) { |
| 85 | $web_url_domain = $web_url_arr['host']; | 85 | $web_url_domain = $web_url_arr['host']; |
| 86 | } | 86 | } |
| 87 | 87 | ||
| 88 | - $home_url_arr = parse_url($data_config['home_url']); | 88 | + $home_url_arr = parse_url($data_config['home_url'] ?? ''); |
| 89 | if (isset($home_url_arr['host'])) { | 89 | if (isset($home_url_arr['host'])) { |
| 90 | $home_url = $home_url_arr['host']; | 90 | $home_url = $home_url_arr['host']; |
| 91 | } | 91 | } |
-
请 注册 或 登录 后发表评论