From 59ad249cb2dae61cc7bcf0915f3eede4a13999f1 Mon Sep 17 00:00:00 2001 From: syrinka Date: Tue, 23 Aug 2022 22:26:11 +0800 Subject: [PATCH] =?UTF-8?q?fix(route):=20nga=20=E8=A7=A3=E6=9E=90=E5=A4=B1?= =?UTF-8?q?=E8=B4=A5=20(#10586)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 移除硬编码索引,改为直接全文搜索 --- lib/v2/nga/post.js | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/v2/nga/post.js b/lib/v2/nga/post.js index aef1e1d96..ad30520a5 100644 --- a/lib/v2/nga/post.js +++ b/lib/v2/nga/post.js @@ -77,7 +77,6 @@ module.exports = async (ctx) => { const title = $('title').text() || ''; const posterMap = JSON.parse( $('script') - .eq(7) .text() .match(/commonui\.userInfo\.setAll\((.*)\)$/m)[1] );