!16 修复上传面板图后,再上传照片仍会上传为面板图bug

Merge pull request !16 from ChallengerV/master
This commit is contained in:
Yoimiya 2023-03-30 03:02:31 +00:00 committed by Gitee
commit 6006f5c9f7
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -24,6 +24,8 @@ export async function uploadCharacterImg (e) {
if (msg.includes('面板')) { if (msg.includes('面板')) {
isProfile = true isProfile = true
regRet = profileRegex.exec(msg) regRet = profileRegex.exec(msg)
} else {
isProfile = false
} }
// 通过解析正则获取消息中的角色名 // 通过解析正则获取消息中的角色名