!12 修复上传角色照片路径错误

Merge pull request !12 from ChallengerV/master
This commit is contained in:
Yoimiya 2023-03-20 18:49:43 +00:00 committed by Gitee
commit 1c1855e964
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -89,7 +89,7 @@ async function saveImages (e, name, imageMessages) {
let path = resPath + pathSuffix
if (!fs.existsSync(path)) {
Data.createDir(pathSuffix, 'miao')
Data.createDir("resources/" + pathSuffix, 'miao')
}
let senderName = lodash.truncate(e.sender.card, { length: 8 })
let imgCount = 0