From cbf30bfa6a17e7608827237ffbbac573b506854f Mon Sep 17 00:00:00 2001 From: tgly307 Date: Fri, 3 Apr 2020 19:55:03 +0800 Subject: [PATCH] refactor: covid typo (#4383) --- docs/en/other.md | 4 ++-- docs/other.md | 4 ++-- lib/routes/coronavirus/caixin.js | 2 +- lib/routes/coronavirus/scmp.js | 4 ++-- lib/routes/coronavirus/sg-moh.js | 6 +++--- 5 files changed, 10 insertions(+), 10 deletions(-) diff --git a/docs/en/other.md b/docs/en/other.md index ebf8a9cae..6dbf68161 100644 --- a/docs/en/other.md +++ b/docs/en/other.md @@ -158,9 +158,9 @@ Type -## Wuhan coronavirus +## Corona Virus Disease 2019 -### South China Morning Post - China coronavirus outbreak +### South China Morning Post - Coronavirus outbreak diff --git a/docs/other.md b/docs/other.md index f324d789f..4dfb249c5 100644 --- a/docs/other.md +++ b/docs/other.md @@ -477,13 +477,13 @@ type 为 all 时,category 参数不支持 cost 和 free -## 武汉肺炎疫情新闻动态 +## 新冠肺炎疫情新闻动态 ### 国家卫健委 - 疫情通报 -### 财新网 - 武汉肺炎防疫全纪录 +### 财新网 - 新冠肺炎防疫全纪录 diff --git a/lib/routes/coronavirus/caixin.js b/lib/routes/coronavirus/caixin.js index 91596cbf9..aeaf51bfe 100644 --- a/lib/routes/coronavirus/caixin.js +++ b/lib/routes/coronavirus/caixin.js @@ -14,7 +14,7 @@ module.exports = async (ctx) => { const list = $('li.photo'); ctx.state.data = { - title: '武汉肺炎防疫全纪录-财新网', + title: '新冠肺炎防疫全纪录-财新网', description: $('.lead').html(), link: 'http://m.app.caixin.com/m_topic_detail/1473.html', item: diff --git a/lib/routes/coronavirus/scmp.js b/lib/routes/coronavirus/scmp.js index 4e513e11d..4fa6c8d46 100644 --- a/lib/routes/coronavirus/scmp.js +++ b/lib/routes/coronavirus/scmp.js @@ -4,7 +4,7 @@ const cheerio = require('cheerio'); module.exports = async (ctx) => { const response = await got({ method: 'get', - url: 'https://www.scmp.com/topics/china-coronavirus-outbreak', + url: 'https://www.scmp.com/topics/coronavirus-outbreak', }); const data = response.data; @@ -15,7 +15,7 @@ module.exports = async (ctx) => { ctx.state.data = { title: 'China coronavirus outbreak - SCMP', description: $('.topic__desc--p').html(), - link: 'https://www.scmp.com/topics/china-coronavirus-outbreak', + link: 'https://www.scmp.com/topics/coronavirus-outbreak', item: list && list diff --git a/lib/routes/coronavirus/sg-moh.js b/lib/routes/coronavirus/sg-moh.js index c4e024f84..d05db0c09 100644 --- a/lib/routes/coronavirus/sg-moh.js +++ b/lib/routes/coronavirus/sg-moh.js @@ -2,7 +2,7 @@ const got = require('@/utils/got'); const cheerio = require('cheerio'); module.exports = async (ctx) => { - const dataUrl = 'https://www.moh.gov.sg/2019-ncov-wuhan/past-updates'; + const dataUrl = 'https://www.moh.gov.sg/covid-19/past-updates'; const response = await got({ method: 'get', url: dataUrl, @@ -32,9 +32,9 @@ module.exports = async (ctx) => { .get(); ctx.state.data = { - title: 'Past Updates On 2019-NCOV Local Situation', + title: 'Past Updates On COVID-19 Local Situation', link: dataUrl, - description: 'Past Updates On 2019-NCOV Local Situation', + description: 'Past Updates On COVID-19 Local Situation', item: items, }; };