zhangchuanxing 3 luni în urmă
părinte
comite
c1a34f684d
1 a modificat fișierele cu 3 adăugiri și 0 ștergeri
  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 {