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

Signed-off-by: ChallengerV <245646299@qq.com>
This commit is contained in:
ChallengerV 2023-03-30 01:41:38 +00:00 committed by Gitee
parent f1bf5f7c1d
commit d785b6649e
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
} }
// 通过解析正则获取消息中的角色名 // 通过解析正则获取消息中的角色名