diff --git a/app/mix/controller/init.go b/app/mix/controller/init.go index 015d6a13..12e0b4ac 100644 --- a/app/mix/controller/init.go +++ b/app/mix/controller/init.go @@ -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...), }) }