mirror of
https://github.com/DIYgod/RSSHub.git
synced 2026-09-19 09:52:21 +08:00
fix: dwnews time & api (#3997)
This commit is contained in:
+12
-12
@@ -318,6 +318,18 @@ pageClass: routes
|
||||
|
||||
<Route author="Jeason0228" example="/gov/customs/list/paimai" path="/gov/customs/list/:gchannel" :paramsDesc="['支持paimai,fagui等2个频道']" />
|
||||
|
||||
## 中华人民共和国教育部
|
||||
|
||||
### 新闻
|
||||
|
||||
<Route author="Crawler995" example="/gov/moe/policy_anal" path="/gov/moe/:type" :paramsDesc="['分类名']">
|
||||
|
||||
| 政策解读 | 最新文件 | 公告公示 | 教育部简报 |
|
||||
| :---------: | :---------: | :------: | :---------------: |
|
||||
| policy_anal | newest_file | notice | edu_ministry_news |
|
||||
|
||||
</Route>
|
||||
|
||||
## 中华人民共和国商务部
|
||||
|
||||
### 政务公开
|
||||
@@ -342,18 +354,6 @@ pageClass: routes
|
||||
|
||||
</Route>
|
||||
|
||||
## 中华人民共和国教育部
|
||||
|
||||
### 新闻
|
||||
|
||||
<Route author="Crawler995" example="/gov/moe/policy_anal" path="/gov/moe/:type" :paramsDesc="['分类名']">
|
||||
|
||||
| 政策解读 | 最新文件 | 公告公示 | 教育部简报 |
|
||||
| :---------: | :---------: | :------: | :---------------: |
|
||||
| policy_anal | newest_file | notice | edu_ministry_news |
|
||||
|
||||
</Route>
|
||||
|
||||
## 中华人民共和国外交部
|
||||
|
||||
### 发言人表态
|
||||
|
||||
@@ -178,9 +178,9 @@ Category 列表:
|
||||
|
||||
<Route author="HenryQW" example="/dwnews/yaowen/global" path="/dwnews/yaowen/:region?" :paramsDesc="['要闻地区,默认`全部`,可选地区如下']">
|
||||
|
||||
| 全部 | 国际 | 中国 | 香港 | 台湾 | 经济 |
|
||||
| ------ | ------ | ----- | -------- | ------ | ------ |
|
||||
| yaowen | global | china | hongkong | taiwan | jingji |
|
||||
| 全部 | 国际 | 中国 | 香港 | 台湾 | 经济 | 视觉 |
|
||||
| ------ | ------ | ----- | -------- | ------ | ------ | ------ |
|
||||
| yaowen | global | china | hongkong | taiwan | jingji | shijue |
|
||||
|
||||
</Route>
|
||||
|
||||
|
||||
@@ -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(),
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user