This commit is contained in:
parent
ec2bad2abf
commit
d2f961a2d4
|
@ -455,7 +455,7 @@ func ReplyErrCodeMsgAndDetail(ctx *gin.Context, ec errcode.ErrCode, params ...an
|
||||||
ctx.AbortWithStatusJSON(http.StatusOK, base.BaseResponse{
|
ctx.AbortWithStatusJSON(http.StatusOK, base.BaseResponse{
|
||||||
Ret: consts.RetCodeFail,
|
Ret: consts.RetCodeFail,
|
||||||
ErrCode: ec,
|
ErrCode: ec,
|
||||||
Msg: fmt.Sprintf(errcode.ErrCodeMsgMap[ec], params),
|
Msg: fmt.Sprintf(errcode.ErrCodeMsgMap[ec], params...),
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue