zhangchuanxing 3 mesiacov pred
rodič
commit
c1a34f684d
1 zmenil súbory, kde vykonal 3 pridanie a 0 odobranie
  1. 3 0
      controllers/wechat.go

+ 3 - 0
controllers/wechat.go

@@ -137,6 +137,9 @@ func (this *WechatCommonController) WechatLoginByGzh() {
 		CreatePlatform: 12,                    //注册平台,1:日度点评公众号,2:管理后台,3:pc端网站,4:查研观向小程序;默认:1
 		SessionKey:     wxUserInfo.SessionKey, //微信小程序会话密钥,最大长度:255
 	}
+	if user != nil {
+		userRecord.UserId = user.UserId
+	}
 	if mfyxUserRecord == nil {
 		_, err = models.AddMfyxGzhUserRecord(items)
 		if err != nil {