正在显示
1 个修改的文件
包含
1 行增加
和
1 行删除
| @@ -867,7 +867,7 @@ class RelayInquiry extends Command | @@ -867,7 +867,7 @@ class RelayInquiry extends Command | ||
| 867 | function getLinksFromSitemap($sitemapUrl) { | 867 | function getLinksFromSitemap($sitemapUrl) { |
| 868 | try { | 868 | try { |
| 869 | //忽略cert证书 先下载到临时文件 | 869 | //忽略cert证书 先下载到临时文件 |
| 870 | - $result = Http::withoutVerifying()->timeout(30)->get($sitemapUrl)->body(); | 870 | + $result = Http::withoutVerifying()->timeout(10)->get($sitemapUrl)->body(); |
| 871 | $tempFilePath = tempnam(sys_get_temp_dir(), 'remote_file_'); | 871 | $tempFilePath = tempnam(sys_get_temp_dir(), 'remote_file_'); |
| 872 | file_put_contents($tempFilePath, $result); | 872 | file_put_contents($tempFilePath, $result); |
| 873 | $xml = simplexml_load_file($tempFilePath); | 873 | $xml = simplexml_load_file($tempFilePath); |
-
请 注册 或 登录 后发表评论