mirror of
https://github.com/LLOneBot/LLOneBot.git
synced 2024-11-22 01:56:33 +00:00
fix: 修复上传file://格式的文件时会误删原文件
This commit is contained in:
parent
b830cfbfa0
commit
5194c279d8
@ -300,7 +300,6 @@ async function listenSendMessage(postData: PostDataSendMsg) {
|
||||
name: group.name,
|
||||
uid: group.uid
|
||||
}
|
||||
|
||||
} else {
|
||||
sendMsgResult.status = -1;
|
||||
sendMsgResult.retcode = -1;
|
||||
@ -360,9 +359,9 @@ async function listenSendMessage(postData: PostDataSendMsg) {
|
||||
} else {
|
||||
localFilePath = path;
|
||||
}
|
||||
sendFiles.push(localFilePath);
|
||||
}
|
||||
message.file = localFilePath
|
||||
sendFiles.push(localFilePath);
|
||||
} else if (message.type == "reply") {
|
||||
let msgId = message.data?.id || message.msgId
|
||||
let replyMessage = msgHistory.find(msg => msg.raw.msgId == msgId)
|
||||
|
Loading…
x
Reference in New Issue
Block a user