From d2f961a2d4e2839f184ed0813221a9e80a3b4290 Mon Sep 17 00:00:00 2001 From: Leufolium Date: Mon, 18 Mar 2024 23:51:31 +0800 Subject: [PATCH] 1 --- app/mix/controller/init.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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...), }) }