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) {
|
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: '未找到用户信息']
|
if (!el) return [pageName: '首页', message: '未找到用户信息']
|
||||||
def t = utils.text(el)
|
def t = utils.text(el)
|
||||||
def fields = [:]
|
def fields = [:]
|
||||||
@@ -90,7 +90,7 @@ Map sync(PluginContext ctx) {
|
|||||||
try {
|
try {
|
||||||
def conn = ctx.httpGet('/index.php')
|
def conn = ctx.httpGet('/index.php')
|
||||||
def doc = jsoup.parse(conn.body())
|
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: "未找到用户信息"]
|
if (!el) return [message: "未找到用户信息"]
|
||||||
def t = utils.text(el)
|
def t = utils.text(el)
|
||||||
def result = [:]
|
def result = [:]
|
||||||
|
|||||||
Reference in New Issue
Block a user