fix(problem/remote): problem crawler

This commit is contained in:
Baoshuo Ren 2023-02-03 16:41:13 +08:00
parent 0aacb14b9b
commit 92793969af
Signed by: baoshuo
GPG Key ID: 00CB9680AB29F51A

View File

@ -240,7 +240,7 @@ class UOJRemoteProblem {
if (!$res) return null;
$dom = new \IvoPetkov\HTML5DOMDocument();
$dom->loadHTML($res);
$dom->loadHTML($res['response']);
$container_dom = $dom->querySelectorAll('#main-container > div.row > div.col-sm-12')->item(1);
if (!$container_dom) return null;
@ -315,7 +315,7 @@ class UOJRemoteProblem {
if (!$res) return null;
$dom = new \IvoPetkov\HTML5DOMDocument();
$dom->loadHTML($res);
$dom->loadHTML($res['response']);
$title_dom = $dom->querySelector('.page-header');
$title_matches = [];