From 1f52e899daa991260d90e037e695a7e4eb4997e5 Mon Sep 17 00:00:00 2001 From: wucongxing8150 <815046773@qq.com> Date: Tue, 8 Jul 2025 17:33:45 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=BA=86=E6=96=B0=E7=97=85?= =?UTF-8?q?=E4=BE=8B=E9=AA=8C=E8=AF=812?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/controller/Public.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/api/controller/Public.go b/api/controller/Public.go index 1ce81e0..95465e8 100644 --- a/api/controller/Public.go +++ b/api/controller/Public.go @@ -245,7 +245,7 @@ func (b *Public) LoginProgram(c *gin.Context) { req := publicRequest.LoginProgram if err := c.ShouldBind(&req); err != nil { c.JSON(http.StatusOK, gin.H{ - "message": "登录失败1", + "message": "登录失败", "code": -2, "data": gin.H{ "source": 2, @@ -258,7 +258,7 @@ func (b *Public) LoginProgram(c *gin.Context) { // 参数验证 if err := global.Validate.Struct(req); err != nil { c.JSON(http.StatusOK, gin.H{ - "message": "登录失败2", + "message": "登录失败", "code": -2, "data": gin.H{ "source": 2, @@ -272,7 +272,7 @@ func (b *Public) LoginProgram(c *gin.Context) { t, err := utils.ParseJwt(req.Token) if err != nil { c.JSON(http.StatusOK, gin.H{ - "message": "登录失败3", + "message": "登录失败", "code": -2, "data": gin.H{ "source": 2, @@ -342,7 +342,7 @@ func (b *Public) LoginProgram(c *gin.Context) { jwt, err := token.NewJWT() if err != nil || jwt == "" { c.JSON(http.StatusOK, gin.H{ - "message": "登陆失败6", + "message": "登陆失败", "code": -1, "data": gin.H{ "source": 2,