From ad5376c97780f63f211fc3b6abc7993a380525d9 Mon Sep 17 00:00:00 2001 From: Jin Date: Fri, 3 Jan 2020 17:39:25 +0800 Subject: [PATCH] fix: parsing error (#3676) --- lib/routes/eastday/sh.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/routes/eastday/sh.js b/lib/routes/eastday/sh.js index 4d38551a33..7bd01f81fb 100644 --- a/lib/routes/eastday/sh.js +++ b/lib/routes/eastday/sh.js @@ -18,10 +18,9 @@ module.exports = async (ctx) => { version: '0.0.0.2', }, }); - const data = JSON.parse(response.body.trim()); const result = await Promise.all( - data.list.map(async (item) => { + response.data.list.map(async (item) => { const link = item.url; const entity = { title: item.title,