Compare commits

..

2 Commits

Author SHA1 Message Date
linyuchen
dcaa07dc1c ver: 2.4.1 2024-02-04 22:19:22 +08:00
linyuchen
5194c279d8 fix: 修复上传file://格式的文件时会误删原文件 2024-02-04 22:00:23 +08:00
2 changed files with 2 additions and 3 deletions

View File

@@ -4,7 +4,7 @@
"name": "LLOneBot",
"slug": "LLOneBot",
"description": "LiteLoaderQQNT的OneBotApi",
"version": "2.4.0",
"version": "2.4.1",
"thumbnail": "./icon.png",
"authors": [{
"name": "linyuchen",

View File

@@ -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)