From 483e96fbe34e54cbd7b8f7e94bb2f3881d9e955c Mon Sep 17 00:00:00 2001 From: away <1819625428@qq.com> Date: Mon, 5 Jul 2021 10:06:56 +0800 Subject: [PATCH] fix get group all member --- src/rpc/group/group/group.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/rpc/group/group/group.go b/src/rpc/group/group/group.go index 9a57defd5..1d10f4427 100644 --- a/src/rpc/group/group/group.go +++ b/src/rpc/group/group/group.go @@ -119,9 +119,9 @@ func (s *groupServer) GetGroupAllMember(ctx context.Context, req *pbGroup.GetGro claims, err := utils.ParseToken(req.Token) if err != nil { log.Error(req.Token, req.OperationID, "err=%s,parse token failed", err.Error()) - } - if req.Token != config.Config.Secret { - return &pbGroup.GetGroupAllMemberResp{ErrorCode: config.ErrParseToken.ErrCode, ErrorMsg: config.ErrParseToken.ErrMsg}, nil + if req.Token != config.Config.Secret { + return &pbGroup.GetGroupAllMemberResp{ErrorCode: config.ErrParseToken.ErrCode, ErrorMsg: config.ErrParseToken.ErrMsg}, nil + } } var resp pbGroup.GetGroupAllMemberResp