mirror of
https://github.com/whitechi73/OpenShamrock.git
synced 2024-08-14 13:12:17 +08:00
Shamrock
: 修复回复类型id错误
This commit is contained in:
parent
42ca17339e
commit
9423df2670
@ -274,7 +274,7 @@ internal object MessageMaker {
|
|||||||
element.elementType = MsgConstant.KELEMTYPEREPLY
|
element.elementType = MsgConstant.KELEMTYPEREPLY
|
||||||
val reply = ReplyElement()
|
val reply = ReplyElement()
|
||||||
|
|
||||||
val msgHash = data["id"].asString.toInt()
|
val msgHash = data["id"].asInt
|
||||||
val mapping = MessageHelper.getMsgMappingByHash(msgHash)
|
val mapping = MessageHelper.getMsgMappingByHash(msgHash)
|
||||||
?: return Result.failure(Exception("不存在该消息映射,无法回复消息"))
|
?: return Result.failure(Exception("不存在该消息映射,无法回复消息"))
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user