From eb25cda327988eb0b8e5483dc4d48b1ba9ab56ac Mon Sep 17 00:00:00 2001 From: Ethan Shen Date: Mon, 7 Dec 2020 02:18:54 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=9C=B0=E9=9C=87=E9=80=9F=E6=8A=A5?= =?UTF-8?q?=E6=8A=A5=E9=94=99=20(#6366)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/routes/earthquake/ceic.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/routes/earthquake/ceic.js b/lib/routes/earthquake/ceic.js index 95496a7d75..1181c46d24 100644 --- a/lib/routes/earthquake/ceic.js +++ b/lib/routes/earthquake/ceic.js @@ -37,7 +37,7 @@ module.exports = async (ctx) => { const typeName = typeMappings[type]; const response = await got(api); - const data = response.data; + const data = response.data.replace(/,"page":"(.*?)","num":/, ',"num":'); let json = JSON.parse(data.substring(1, data.length - 1)).shuju; if (json.length > 20) { json = json.slice(0, 20);