From fdd765f982619a93a9c7633b3c10f4a69605943e Mon Sep 17 00:00:00 2001 From: Gordon <1432970085@qq.com> Date: Wed, 15 Feb 2023 10:45:12 +0800 Subject: [PATCH] extend msg update --- internal/rpc/msg/extend_msg.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/internal/rpc/msg/extend_msg.go b/internal/rpc/msg/extend_msg.go index d262efab5..e1d02dc69 100644 --- a/internal/rpc/msg/extend_msg.go +++ b/internal/rpc/msg/extend_msg.go @@ -291,11 +291,11 @@ func (rpc *rpcChat) AddMessageReactionExtensions(ctx context.Context, req *msg.A if callbackResp.ActionCode != constant.ActionAllow || callbackResp.ErrCode != 0 { rResp.ErrCode = int32(callbackResp.ErrCode) rResp.ErrMsg = callbackResp.ErrMsg - for _, value := range req.ReactionExtensionList { + for _, value := range callbackResp.ResultReactionExtensionList { temp := new(msg.KeyValueResp) - temp.KeyValue = value - temp.ErrMsg = callbackResp.ErrMsg - temp.ErrCode = 100 + temp.KeyValue = value.KeyValue + temp.ErrMsg = value.ErrMsg + temp.ErrCode = value.ErrCode rResp.Result = append(rResp.Result, temp) } return &rResp, nil