|
@@ -46,7 +46,6 @@ func (this *UserController) Login() {
|
|
|
br.Ret = 408
|
|
|
return
|
|
|
}
|
|
|
- inviteShareCode := req.InviteShareCode
|
|
|
unionId := this.User.UnionId
|
|
|
openId := this.User.OpenId
|
|
|
if unionId == "" {
|
|
@@ -114,7 +113,7 @@ func (this *UserController) Login() {
|
|
|
if len(req.Mobile) >= 11 && req.CountryCode == "" {
|
|
|
req.CountryCode = "86"
|
|
|
}
|
|
|
- user, err = services.BindWxUser(openId, req.Mobile, req.Email, req.CountryCode)
|
|
|
+ user, err = services.BindWxUser(openId, req.Mobile, req.Email, req.CountryCode, "")
|
|
|
if err != nil {
|
|
|
br.Msg = "登录失败"
|
|
|
br.ErrMsg = "绑定手机号失败:" + err.Error()
|
|
@@ -190,9 +189,6 @@ func (this *UserController) Login() {
|
|
|
|
|
|
{
|
|
|
services.UpdateCygxSubscribe(userId, unionId) //先关注后登录,更新用户是否关注过查研观向小助手公众号
|
|
|
- if inviteShareCode != "" { //记录分享来源
|
|
|
- go services.AddCygxUserAdminShareHistory(user, "login", "", inviteShareCode, 0) //记录分享来源
|
|
|
- }
|
|
|
}
|
|
|
|
|
|
resp := new(models.LoginResp)
|