Fix sendMessage

This commit is contained in:
Him188
2020-03-03 16:43:18 +08:00
parent e1786d9570
commit a9753c4414
2 changed files with 3 additions and 3 deletions

View File

@@ -153,7 +153,7 @@ internal abstract class QQAndroidBotBase constructor(
getGroup(source.groupId).checkBotPermissionOperator()
}
println(source._miraiContentToString())
// println(source._miraiContentToString())
source.ensureSequenceIdAvailable()
network.run {

View File

@@ -284,7 +284,7 @@ internal class MessageSvc {
messageRandom = Random.nextInt().absoluteValue,
senderId = client.uin,
toUin = toUin,
time = currentTimeSeconds + client.timeDifference,
time = currentTimeSeconds,
groupId = 0,
sequenceId = client.atomicNextMessageSequenceId(),
originalMessage = message
@@ -335,7 +335,7 @@ internal class MessageSvc {
messageRandom = Random.nextInt().absoluteValue,
senderId = client.uin,
toUin = Group.calculateGroupUinByGroupCode(groupCode),
time = currentTimeSeconds + client.timeDifference,
time = currentTimeSeconds,
groupId = groupCode,
originalMessage = message//,
// sourceMessage = message