Browse Source

新增用户来源

rdluck 4 years ago
parent
commit
8d221c5371
1 changed files with 1 additions and 0 deletions
  1. 1 0
      controllers/wechat.go

+ 1 - 0
controllers/wechat.go

@@ -88,6 +88,7 @@ func (this *WechatCommonController) WechatLogin() {
 			user.Remark = wxUserInfo.Remark
 			user.FirstLogin = 1
 			user.Enabled = 1
+			user.FromType="report"
 			user.RegisterTime=time.Now()
 			err = models.AddWxUser(user)
 			if wxUserInfo.Unionid != "" {