Browse Source

fix: 提示信息

hsun 3 years ago
parent
commit
3c9ee3c997
1 changed files with 1 additions and 1 deletions
  1. 1 1
      controller/user/user.go

+ 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)