From ea292edd8c4bed0685748135c33ac53b62108058 Mon Sep 17 00:00:00 2001 From: RicardoMing Date: Mon, 4 Nov 2019 14:25:36 +0800 Subject: [PATCH] fix: remove unused config, obtain fulltext of BUPT portal (#3367) --- lib/config.js | 4 ---- lib/routes/universities/bupt/portal.js | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/lib/config.js b/lib/config.js index 77a52d7b4e..f5b179e51b 100644 --- a/lib/config.js +++ b/lib/config.js @@ -95,10 +95,6 @@ const calculateValue = () => { chuiniu: { member: envs.CHUINIU_MEMBER, }, - bupt: { - username: envs.BUPT_USERNAME, - password: envs.BUPT_PASSWORD, - }, }; }; calculateValue(); diff --git a/lib/routes/universities/bupt/portal.js b/lib/routes/universities/bupt/portal.js index 9cf0e9afbb..666358ef2e 100644 --- a/lib/routes/universities/bupt/portal.js +++ b/lib/routes/universities/bupt/portal.js @@ -11,7 +11,7 @@ module.exports = async (ctx) => { value.forEach((item) => { out.push({ title: item.title, - description: item.desc, + description: item.text, pubDate: new Date(item.created * 1000).toUTCString(), link: `https://webapp.bupt.edu.cn/extensions/wap/news/detail.html?id=${item.id}&classify_id=tzgg`, author: item.author,