mirror of
https://github.com/ctrlcvs/xiaoyao-cvs-plugin.git
synced 2024-12-23 03:20:52 +08:00
fix:修正匹配问题
This commit is contained in:
parent
736b9cdcb6
commit
083b759fa5
@ -152,7 +152,7 @@ const send_Msg = async function (e, type, name) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
path = `${pathPlus}${type}/${name}.png`
|
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)) {
|
if (!fs.existsSync(path)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user