From 9b6676ad6b17aa48e10cdc7c63bf965da5af71a2 Mon Sep 17 00:00:00 2001 From: "tangly1024.com" Date: Mon, 6 Nov 2023 16:39:32 +0800 Subject: [PATCH] fix/notion-page-cover --- lib/notion/mapImage.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/notion/mapImage.js b/lib/notion/mapImage.js index 8d8c7434..b6da8d87 100644 --- a/lib/notion/mapImage.js +++ b/lib/notion/mapImage.js @@ -67,7 +67,7 @@ const mapImgUrl = (img, block, type = 'block', from) => { ret = BLOG.NOTION_HOST + '/image/' + encodeURIComponent(ret) + '?table=' + type + '&id=' + block.id } - if (!isEmoji(ret)) { + if (!isEmoji(ret) && ret.indexOf('notion.so/images/page-cover') < 0) { // 随机图片接口优化 防止因url一致而随机结果相同 const separator = ret.includes('?') ? '&' : '?' // 拼接唯一识别参数,防止请求的图片被缓存