From 92793969afa1c71f4505c3bd4d4287ad65492832 Mon Sep 17 00:00:00 2001 From: Baoshuo Date: Fri, 3 Feb 2023 16:41:13 +0800 Subject: [PATCH] fix(problem/remote): problem crawler --- web/app/models/UOJRemoteProblem.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/app/models/UOJRemoteProblem.php b/web/app/models/UOJRemoteProblem.php index 15abe74..deed5ee 100644 --- a/web/app/models/UOJRemoteProblem.php +++ b/web/app/models/UOJRemoteProblem.php @@ -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 = [];