fix: “湖南省政府采购网”RSS源重复 (#3501)

* Update notice.js

* Update notice.js

* fix: “湖南省政府采购网”RSS源重复
This commit is contained in:
Bright-W
2019-11-29 02:30:49 +08:00
committed by DIYgod
parent 2a8bb0bee9
commit b0f07e7a87
+2 -2
View File
@@ -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`,