+ [pipeline] add check url method.

This commit is contained in:
liyang
2025-04-28 16:39:26 +08:00
committed by 李阳
parent 396a0ca7e6
commit 09e910f06e
+16
View File
@@ -506,6 +506,22 @@ class tester extends result
if(empty($urlList)) return false;
$webRoot = $this->getWebRoot();
$result = array();
foreach($urlList as $url)
{
$this->page->openURL($webRoot . $url);
sleep($wait);
$errors = $this->page->dom->getErrorsInPage();
if(!empty($errors))
{
$checked = new stdclass();
$checked->url = $url;
$checked->errors = $errors;
$result[] = $checked;
}
}
return $result;
}