diff --git a/docs/pttime.groovy b/docs/pttime.groovy index a99579d..8af05fb 100644 --- a/docs/pttime.groovy +++ b/docs/pttime.groovy @@ -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 = [:]