From 853badb76fe7452a8c6460bc28a90e3c7ba0f57a Mon Sep 17 00:00:00 2001 From: xiaoQQya Date: Sun, 25 Jan 2026 14:36:22 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=9B=B4=E6=96=B0=E7=AB=99=E7=82=B9=20R?= =?UTF-8?q?ousi=20Pro=20=E8=8E=B7=E5=8F=96=E6=9C=AA=E8=AF=BB=E6=B6=88?= =?UTF-8?q?=E6=81=AF=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/modules/indexer/parser/rousi.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/modules/indexer/parser/rousi.py b/app/modules/indexer/parser/rousi.py index 22eeaffc..5972b724 100644 --- a/app/modules/indexer/parser/rousi.py +++ b/app/modules/indexer/parser/rousi.py @@ -197,13 +197,13 @@ class RousiSiteUserInfo(SiteParserBase): url=urljoin(self._base_url, "api/messages"), params=params ) - if not res or res.status_code != 200 or not res.text: + if not res or res.status_code != 200 or res.json().get("code", -1) != 0: logger.warn(f"{self._site_name} 站点解析消息失败,状态码: {res.status_code if res else '无响应'}") return { "messages": [], "total_pages": 0 } - return res.json() + return res.json().get("data") # 分页获取所有未读消息 page = 0