From 083b759fa5dc2e3575314c766cab37a83b63079d Mon Sep 17 00:00:00 2001 From: Ctrlcvs <1509167646@qq.com> Date: Thu, 29 Dec 2022 09:33:55 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E4=BF=AE=E6=AD=A3=E5=8C=B9=E9=85=8D?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/xiaoyao_image.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/xiaoyao_image.js b/apps/xiaoyao_image.js index dfb475d..eb06a55 100644 --- a/apps/xiaoyao_image.js +++ b/apps/xiaoyao_image.js @@ -152,7 +152,7 @@ const send_Msg = async function (e, type, name) { } } path = `${pathPlus}${type}/${name}.png` - if(/原牌|七圣召唤|七圣|动态|幻影/.test(e.msg)) path= path.replace(/\.png/,'.jpg') + if(/原牌|七圣召唤|七圣|动态|幻影/.test(e.msg)&&!type.includes('role')) path= path.replace(/\.png/,'.jpg') if (!fs.existsSync(path)) { return false; }