作者 赵彬吉

update

@@ -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);