fix: 修复附件解析正则,匹配 download2.ashx

正则从 download\.ashx 改为 download2?\.ashx
以同时支持新旧两种附件下载链接格式

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
2026-01-14 12:48:58 +08:00
parent 1bd49f804c
commit 2ff9e18842

View File

@@ -366,7 +366,7 @@ class APIBrowser:
if attach_list:
items = attach_list.find_all('li')
for item in items:
download_links = item.find_all('a', onclick=re.compile(r'download\.ashx'))
download_links = item.find_all('a', onclick=re.compile(r'download2?\.ashx'))
for link in download_links:
onclick = link.get('onclick', '')
id_match = re.search(r'id=(\d+)', onclick)