hsun 3 жил өмнө
parent
commit
3c9ee3c997

+ 1 - 1
controller/user/user.go

@@ -58,7 +58,7 @@ func Login(c *gin.Context) {
 	}
 	token, newUserInfo, err, errMsg := userService.BindWxUser(openId, req.Mobile, req.Email, req.VerifyCode, req.LoginType, req.AreaNum, 1)
 	if err != nil {
-		if errMsg != "" {
+		if errMsg == "" {
 			errMsg = "登录失败"
 		}
 		response.Fail(errMsg, c)