mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2025-12-20 13:40:10 +08:00
fix: 增加容错
This commit is contained in:
parent
2536e1ae6a
commit
77b51a072d
2
src/core
2
src/core
@ -1 +1 @@
|
|||||||
Subproject commit eec6f2a5c02f0c5069fb43d6e0ccacfff78795b0
|
Subproject commit 4e242a5850d7a856c6006ec3dcfd3ad483959db6
|
||||||
@ -67,7 +67,14 @@ export async function sendMsg(peer: Peer, sendElements: SendMessageElement[], de
|
|||||||
logDebug('发送消息id获取失败', e);
|
logDebug('发送消息id获取失败', e);
|
||||||
returnMsg.id = 0;
|
returnMsg.id = 0;
|
||||||
}
|
}
|
||||||
deleteAfterSentFiles.map(f => fs.unlinkSync(f));
|
|
||||||
|
deleteAfterSentFiles.map((f) => {
|
||||||
|
try {
|
||||||
|
fs.unlinkSync(f);
|
||||||
|
} catch (e) {
|
||||||
|
logError('发送消息删除文件失败', e);
|
||||||
|
}
|
||||||
|
});
|
||||||
return returnMsg;
|
return returnMsg;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user