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,