diff --git a/lib/routes/gov/hunan/notice.js b/lib/routes/gov/hunan/notice.js index d1d8133059..4382555bef 100644 --- a/lib/routes/gov/hunan/notice.js +++ b/lib/routes/gov/hunan/notice.js @@ -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`,