This commit is contained in:
Leufolium 2024-03-18 23:51:31 +08:00
parent ec2bad2abf
commit d2f961a2d4
1 changed files with 1 additions and 1 deletions

View File

@ -455,7 +455,7 @@ func ReplyErrCodeMsgAndDetail(ctx *gin.Context, ec errcode.ErrCode, params ...an
ctx.AbortWithStatusJSON(http.StatusOK, base.BaseResponse{
Ret: consts.RetCodeFail,
ErrCode: ec,
Msg: fmt.Sprintf(errcode.ErrCodeMsgMap[ec], params),
Msg: fmt.Sprintf(errcode.ErrCodeMsgMap[ec], params...),
})
}