rdluck 4 년 전
부모
커밋
74b8abea45
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      services/user.go

+ 1 - 0
services/user.go

@@ -225,6 +225,7 @@ func WxLogin(code, openId, unionId string, wxUserInfo *WxUserInfo) (token string
 	firstLogin = 1
 	fmt.Println("GetWxUserItemByOpenId ", openId)
 	wxUser, wxUserErr := GetWxUserItemByOpenId(openId)
+	fmt.Println("wxUserErr",wxUserErr)
 	if wxUserErr == ERR_NO_USER_RECORD { //没有用户openid记录
 		_, recordErr := AddUserRecord(openId, unionId, wxUserInfo.Nickname, "", wxUserInfo.Province, wxUserInfo.City, wxUserInfo.Country, wxUserInfo.Headimgurl, wxUserInfo.SessionKey, utils.WxPlatform, wxUserInfo.Sex, 0)
 		err = recordErr