mirror of
https://github.com/whitechi73/OpenShamrock.git
synced 2024-08-14 13:12:17 +08:00
fix: #60
This commit is contained in:
parent
58d93b8f56
commit
ca71ecae09
@ -86,7 +86,7 @@ internal object SendMessage: IActionHandler() {
|
||||
}
|
||||
return ok(MessageResult(
|
||||
msgId = result.second,
|
||||
time = result.first * 0.001
|
||||
time = (result.first * 0.001).toLong()
|
||||
), echo = echo)
|
||||
}
|
||||
|
||||
@ -103,7 +103,7 @@ internal object SendMessage: IActionHandler() {
|
||||
}
|
||||
return ok(MessageResult(
|
||||
msgId = result.second,
|
||||
time = result.first * 0.001
|
||||
time = (result.first * 0.001).toLong()
|
||||
), echo)
|
||||
}
|
||||
|
||||
|
@ -7,7 +7,7 @@ import kotlinx.serialization.json.JsonElement
|
||||
@Serializable
|
||||
internal data class MessageResult(
|
||||
@SerialName("message_id") val msgId: Int,
|
||||
@SerialName("time") val time: Double
|
||||
@SerialName("time") val time: Long
|
||||
)
|
||||
|
||||
@Serializable
|
||||
|
Loading…
x
Reference in New Issue
Block a user