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