mirror of
https://github.com/DIYgod/RSSHub.git
synced 2026-09-24 23:12:34 +08:00
fix: “湖南省政府采购网”RSS源重复 (#3501)
* Update notice.js * Update notice.js * fix: “湖南省政府采购网”RSS源重复
This commit is contained in:
@@ -35,7 +35,7 @@ module.exports = async (ctx) => {
|
||||
return htmlContent;
|
||||
},
|
||||
ItemsSingle: async function(item) {
|
||||
const cache = await ctx.cache.get(rssData.itemUrl);
|
||||
const cache = await ctx.cache.get(rssData.itemUrl + item.NOTICE_ID);
|
||||
if (cache) {
|
||||
return Promise.resolve(JSON.parse(cache));
|
||||
}
|
||||
@@ -49,7 +49,7 @@ module.exports = async (ctx) => {
|
||||
category: item.NOTICE_NAME,
|
||||
pubDate: new Date(`${item.NEWWORK_DATE} GMT`).toUTCString(),
|
||||
};
|
||||
ctx.cache.set(rssData.itemUrl, JSON.stringify(single));
|
||||
ctx.cache.set(rssData.itemUrl + item.NOTICE_ID, JSON.stringify(single));
|
||||
return Promise.resolve(single);
|
||||
},
|
||||
referUrl: `http://www.ccgp-hunan.gov.cn/page/notice/more.jsp`,
|
||||
|
||||
Reference in New Issue
Block a user