diff --git a/app/mix/controller/init.go b/app/mix/controller/init.go index f4d379c5..f73e46b2 100644 --- a/app/mix/controller/init.go +++ b/app/mix/controller/init.go @@ -468,7 +468,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...), }) }