소스 검색

fix: 自动登录err

hsun 3 년 전
부모
커밋
6dd26819a8
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      services/user/user.go

+ 2 - 2
services/user/user.go

@@ -238,9 +238,9 @@ QUERY_WX_USER:
 				if platformUser.CountryCode != "" {
 					countryCode, _ = strconv.Atoi(platformUser.CountryCode)
 				}
-				tempToken, tempUser, tempErr, errMsg := BindWxUser(openId, platformUser.Mobile, platformUser.Email, "", 3, countryCode, 1)
+				tempToken, tempUser, tempErr, _ := BindWxUser(openId, platformUser.Mobile, platformUser.Email, "", 3, countryCode, 1)
 				if tempErr != nil {
-					err = errors.New("自动绑定公众号用户失败" + errMsg)
+					err = errors.New("自动绑定公众号用户失败,Err:" + tempErr.Error())
 					return
 				}
 				token = tempToken