fix: 在 echoFull 函数中注册和注销处理器,确保消息返回的 JSON 结构正确
This commit is contained in:
parent
e58ae51ed8
commit
7bdebba241
@ -33,8 +33,9 @@ func addEchoFullTrigger(msg model.Message) (reply *model.Reply) {
|
|||||||
|
|
||||||
func echoFull(msg model.Message) (reply *model.Reply, catched bool) {
|
func echoFull(msg model.Message) (reply *model.Reply, catched bool) {
|
||||||
msgBytes, _ := json.Marshal(msg.StructuredMsg)
|
msgBytes, _ := json.Marshal(msg.StructuredMsg)
|
||||||
|
handler.UnRegisterLiveHandler(msg.GroupInfo.GroupId, msg.UserId)
|
||||||
return &model.Reply{
|
return &model.Reply{
|
||||||
ReplyMsg: msgBytes,
|
ReplyMsg: string(msgBytes),
|
||||||
ReferOriginMsg: false,
|
ReferOriginMsg: false,
|
||||||
FromMsg: msg,
|
FromMsg: msg,
|
||||||
}, true
|
}, true
|
||||||
|
Loading…
x
Reference in New Issue
Block a user