fix: PTTIME用户信息选择器改回#info_block,含两个td.clearfix

This commit is contained in:
mediabot-pt
2026-07-01 22:29:16 +08:00
parent 3c00d6798c
commit 597325d3af

View File

@@ -18,7 +18,7 @@ Map parse(String content, String url) {
// ── 首页 / 用户信息 ──
private Map parseIndex(doc) {
def el = utils.selectFirst(doc, '#info_block td.bottom.clearfix')
def el = utils.selectFirst(doc, '#info_block')
if (!el) return [pageName: '首页', message: '未找到用户信息']
def t = utils.text(el)
def fields = [:]
@@ -90,7 +90,7 @@ Map sync(PluginContext ctx) {
try {
def conn = ctx.httpGet('/index.php')
def doc = jsoup.parse(conn.body())
def el = utils.selectFirst(doc, 'td.bottom.clearfix')
def el = utils.selectFirst(doc, '#info_block')
if (!el) return [message: "未找到用户信息"]
def t = utils.text(el)
def result = [:]