From 4e11c7a9e27e4965c240215d3ec3d3a590ccc73c Mon Sep 17 00:00:00 2001 From: wangchuxiao Date: Thu, 16 Jun 2022 16:44:12 +0800 Subject: [PATCH] fix bug --- internal/rpc/user/user.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/rpc/user/user.go b/internal/rpc/user/user.go index 7c274bddc..21883a8d7 100644 --- a/internal/rpc/user/user.go +++ b/internal/rpc/user/user.go @@ -385,7 +385,7 @@ func (s *userServer) UpdateUserInfo(ctx context.Context, req *pbUser.UpdateUserI } m := make(map[string]interface{}, 1) if req.GlobalRecvMsgOpt != nil { - m["global_recv_msg_opt"] = req.GlobalRecvMsgOpt + m["global_recv_msg_opt"] = req.GlobalRecvMsgOpt.Value err := db.DB.SetUserGlobalMsgRecvOpt(user.UserID, req.GlobalRecvMsgOpt.Value) if err != nil { log.NewError(req.OperationID, utils.GetSelfFuncName(), "SetUserGlobalMsgRecvOpt failed ", err.Error(), user)