fix: Send msg timeout minimum

This commit is contained in:
linyuchen 2024-05-18 16:34:12 +08:00
parent 39713d8e11
commit 6413b0ff82

View File

@ -327,7 +327,7 @@ export async function sendMsg(
}
}
log('发送消息总大小', totalSize, 'bytes')
let timeout = ((totalSize / 1024 / 512) * 1000) || 5000 // 512kb/s
let timeout = ((totalSize / 1024 / 512) * 1000) + 5000 // 512kb/s
log('设置消息超时时间', timeout)
const returnMsg = await NTQQMsgApi.sendMsg(peer, sendElements, waitComplete, timeout)
log('消息发送结果', returnMsg)