rdluck 4 жил өмнө
parent
commit
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