fix: PTTIME用户信息选择器改回#info_block,含两个td.clearfix
This commit is contained in:
@@ -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 = [:]
|
||||
|
||||
Reference in New Issue
Block a user