mirror of
https://github.com/DIYgod/RSSHub.git
synced 2026-09-24 23:12:34 +08:00
@@ -59,8 +59,8 @@ module.exports = async (ctx) => {
|
||||
// 结束rssData定义
|
||||
// 配置api日期参数
|
||||
const now = new Date();
|
||||
const startDate = now.getFullYear() + '-' + now.getMonth() + '-01';
|
||||
const endDate = now.toLocaleDateString().replace(/\//g, '-');
|
||||
const startDate = now.getFullYear() + '-01-01';
|
||||
const endDate = now.getFullYear() + '-' + (now.getMonth() + 1) + '-' + now.getDate();
|
||||
rssData.apiResponse = await got({
|
||||
method: 'post',
|
||||
url: `http://www.ccgp-hunan.gov.cn/mvc/getNoticeList4Web.do?nType=${rssData.typeid(type)}&startDate=${startDate}&endDate=${endDate}&page=1&pageSize=18`,
|
||||
|
||||
Reference in New Issue
Block a user