diff --git a/docs/government.md b/docs/government.md index 11d0f09351..f8e435e879 100644 --- a/docs/government.md +++ b/docs/government.md @@ -318,6 +318,18 @@ pageClass: routes +## 中华人民共和国教育部 + +### 新闻 + + + +| 政策解读 | 最新文件 | 公告公示 | 教育部简报 | +| :---------: | :---------: | :------: | :---------------: | +| policy_anal | newest_file | notice | edu_ministry_news | + + + ## 中华人民共和国商务部 ### 政务公开 @@ -342,18 +354,6 @@ pageClass: routes -## 中华人民共和国教育部 - -### 新闻 - - - -| 政策解读 | 最新文件 | 公告公示 | 教育部简报 | -| :---------: | :---------: | :------: | :---------------: | -| policy_anal | newest_file | notice | edu_ministry_news | - - - ## 中华人民共和国外交部 ### 发言人表态 diff --git a/docs/traditional-media.md b/docs/traditional-media.md index 08be00b389..a359523c57 100644 --- a/docs/traditional-media.md +++ b/docs/traditional-media.md @@ -178,9 +178,9 @@ Category 列表: -| 全部 | 国际 | 中国 | 香港 | 台湾 | 经济 | -| ------ | ------ | ----- | -------- | ------ | ------ | -| yaowen | global | china | hongkong | taiwan | jingji | +| 全部 | 国际 | 中国 | 香港 | 台湾 | 经济 | 视觉 | +| ------ | ------ | ----- | -------- | ------ | ------ | ------ | +| yaowen | global | china | hongkong | taiwan | jingji | shijue | diff --git a/lib/routes/dwnews/utils.js b/lib/routes/dwnews/utils.js index aeb8097683..d0df895d76 100644 --- a/lib/routes/dwnews/utils.js +++ b/lib/routes/dwnews/utils.js @@ -56,7 +56,7 @@ const ProcessFeed = (data) => { link: data.publishUrl, author: data.authors[0].publishName, description, - pubDate: new Date(data.publishTime).toUTCString(), + pubDate: new Date(data.publishTime * 1000).toUTCString(), }; }; diff --git a/lib/routes/dwnews/yaowen.js b/lib/routes/dwnews/yaowen.js index 2f6090d477..75c0d7931d 100644 --- a/lib/routes/dwnews/yaowen.js +++ b/lib/routes/dwnews/yaowen.js @@ -32,13 +32,17 @@ module.exports = async (ctx) => { title = `经济${title}`; regionid = '10000123'; break; - default: + case 'shijue': + title = `视觉${title}`; + regionid = '10000153'; break; + default: + throw 'Unknown region'; } host = `https://prod-site-api.dwnews.com/v2/feed/zone/${regionid}?offset=99999999994&bucketId=00000`; link = `${link}/zone/${regionid}`; } else { - host = `https://prod-site-api.dwnews.com/v2/feed/zone/0?offset=99999999994&bucketId=00000`; + host = 'https://prod-site-api.dwnews.com/v2/feed/home/?offset=9999999999&bucketId=00000'; } const list = await got.get(host);