diff --git a/lib/routes/x-mol/paper.js b/lib/routes/x-mol/paper.js index cf4f25570a..232bc8f177 100644 --- a/lib/routes/x-mol/paper.js +++ b/lib/routes/x-mol/paper.js @@ -35,10 +35,11 @@ module.exports = async (ctx) => { let imageUrl = noPic; if (picId) { const imageId = picId.substring(9); - const getLink = utils.host + '/attachment/getImgUrl'; + const getLink = utils.host + '/attachment/getPaperImgUrl'; imageUrl = - (await ctx.cache.tryGet(getLink, async () => { + (await ctx.cache.tryGet(getLink + imageId, async () => { const result = await got.get(getLink, { + headers: { 'X-Requested-With': 'XMLHttpRequest' }, searchParams: queryString.stringify({ attachmentId: imageId, }),