|
...
|
...
|
@@ -867,7 +867,7 @@ class RelayInquiry extends Command |
|
|
|
function getLinksFromSitemap($sitemapUrl) {
|
|
|
|
try {
|
|
|
|
//忽略cert证书 先下载到临时文件
|
|
|
|
$result = Http::withoutVerifying()->timeout(30)->get($sitemapUrl)->body();
|
|
|
|
$result = Http::withoutVerifying()->timeout(10)->get($sitemapUrl)->body();
|
|
|
|
$tempFilePath = tempnam(sys_get_temp_dir(), 'remote_file_');
|
|
|
|
file_put_contents($tempFilePath, $result);
|
|
|
|
$xml = simplexml_load_file($tempFilePath);
|
...
|
...
|
|