fix: 适配网站结构更新
1. 标记已读改用预览通道 (download2.ashx) 2. 截图优先直接访问目标页面,避免 iframe 加载问题 Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -386,8 +386,8 @@ class APIBrowser:
|
||||
return attachments
|
||||
|
||||
def mark_read(self, attach_id: str, channel_id: str = '1') -> bool:
|
||||
"""通过访问下载链接标记已读"""
|
||||
download_url = f"{BASE_URL}/tools/download.ashx?site=main&id={attach_id}&channel_id={channel_id}"
|
||||
"""通过访问预览通道标记已读"""
|
||||
download_url = f"{BASE_URL}/tools/download2.ashx?site=main&id={attach_id}&channel_id={channel_id}"
|
||||
|
||||
try:
|
||||
resp = self._request_with_retry("get", download_url, stream=True)
|
||||
|
||||
Reference in New Issue
Block a user