mirror of
https://github.com/DIYgod/RSSHub.git
synced 2026-09-24 23:12:34 +08:00
fix: update x-mol paper image url (#4256)
This commit is contained in:
@@ -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,
|
||||
}),
|
||||
|
||||
Reference in New Issue
Block a user