From e8130164022ae664434b088c049bd9dfc17c9bcd Mon Sep 17 00:00:00 2001 From: Gordon <1432970085@qq.com> Date: Wed, 4 Jan 2023 17:14:30 +0800 Subject: [PATCH] del msg --- internal/rpc/msg/del_msg.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/internal/rpc/msg/del_msg.go b/internal/rpc/msg/del_msg.go index 06ec06e06..6fce480d3 100644 --- a/internal/rpc/msg/del_msg.go +++ b/internal/rpc/msg/del_msg.go @@ -5,8 +5,8 @@ import ( "Open_IM/pkg/common/db" "Open_IM/pkg/common/log" "Open_IM/pkg/common/token_verify" - commonPb "Open_IM/pkg/proto/sdk_ws" "Open_IM/pkg/proto/msg" + commonPb "Open_IM/pkg/proto/sdk_ws" "Open_IM/pkg/utils" "context" "time" @@ -39,18 +39,18 @@ func (rpc *rpcChat) DelSuperGroupMsg(_ context.Context, req *msg.DelSuperGroupMs resp := &msg.DelSuperGroupMsgResp{} groupMaxSeq, err := db.DB.GetGroupMaxSeq(req.GroupID) if err != nil { - log.NewError(req.OperationID, "GetGroupMaxSeq false ", req.OpUserID, req.UserID,req.GroupID) + log.NewError(req.OperationID, "GetGroupMaxSeq false ", req.OpUserID, req.UserID, req.GroupID) resp.ErrCode = constant.ErrDB.ErrCode resp.ErrMsg = err.Error() return resp, nil } - err = db.DB.SetGroupUserMinSeq(req.GroupID,req.UserID, groupMaxSeq) + err = db.DB.SetGroupUserMinSeq(req.GroupID, req.UserID, groupMaxSeq+1) if err != nil { - log.NewError(req.OperationID, "SetGroupUserMinSeq false ", req.OpUserID, req.UserID,req.GroupID) + log.NewError(req.OperationID, "SetGroupUserMinSeq false ", req.OpUserID, req.UserID, req.GroupID) resp.ErrCode = constant.ErrDB.ErrCode resp.ErrMsg = err.Error() return resp, nil } log.NewInfo(req.OperationID, utils.GetSelfFuncName(), "resp: ", resp.String()) return resp, nil -} \ No newline at end of file +}