From 6518473436e1e83e5403a93e9187afa7fedf81eb Mon Sep 17 00:00:00 2001 From: skiffer-git <44203734@qq.com> Date: Fri, 6 Jan 2023 14:23:43 +0800 Subject: [PATCH] Error code standardization --- pkg/common/token_verify/jwt_token.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/common/token_verify/jwt_token.go b/pkg/common/token_verify/jwt_token.go index d7af5d4ce..0b041f5a8 100644 --- a/pkg/common/token_verify/jwt_token.go +++ b/pkg/common/token_verify/jwt_token.go @@ -162,7 +162,7 @@ func CheckAccessV2(ctx context.Context, OpUserID string, OwnerUserID string) (er if OpUserID == OwnerUserID { return nil } - return utils.Wrap(constant.ErrData, open_utils.GetSelfFuncName()) + return utils.Wrap(constant.ErrIdentity, open_utils.GetSelfFuncName()) } func GetUserIDFromToken(token string, operationID string) (bool, string, string) {