From d2f4a5620aca7d211cdabc718c0c688840b5c01f Mon Sep 17 00:00:00 2001 From: Jin Date: Wed, 2 Feb 2022 03:41:04 +0800 Subject: [PATCH] =?UTF-8?q?fix(route):=20=E4=B8=9C=E6=96=B9=E7=BD=91-?= =?UTF-8?q?=E4=B8=8A=E6=B5=B7=E6=96=B0=E9=97=BB=20(#8523)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Close #7736 Close #7983 --- lib/routes/eastday/sh.js | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/lib/routes/eastday/sh.js b/lib/routes/eastday/sh.js index ca96c9680..27d95a9b3 100644 --- a/lib/routes/eastday/sh.js +++ b/lib/routes/eastday/sh.js @@ -6,24 +6,16 @@ module.exports = async (ctx) => { const domain = 'http://wap.eastday.com'; const response = await got({ - method: 'post', - url: `https://apin.eastday.com/api/news/list`, - json: { - channelId: '15', - currentPage: 1, - pageSize: 20, - appId: '190504', - deviceId: '00000000', - version: '0.0.0.2', - }, + method: 'get', + url: `https://apin.eastday.com/apiplus/special/specialnewslistbyurl?specialUrl=1632798465040016&skipCount=0&limitCount=20`, }); const result = await Promise.all( - response.data.list.map(async (item) => { + response.data.data.list.map(async (item) => { const link = item.url; const entity = { title: item.title, - description: item.abstracts + '...', + description: item.abstracts, pubDate: new Date(item.time).toUTCString(), link, };