|
@@ -623,7 +623,6 @@ func (this *UserAccount) PhoneBind() {
|
|
if exists { //再次校验是否使用
|
|
if exists { //再次校验是否使用
|
|
return nil, fmt.Errorf("手机号已被绑定")
|
|
return nil, fmt.Errorf("手机号已被绑定")
|
|
}
|
|
}
|
|
- log.Println("4444", mode, relationPhoneId)
|
|
|
|
if mode == "" || relationPhoneId == "" { //主动绑定-建立双向绑定关系||跳转绑定新手机号
|
|
if mode == "" || relationPhoneId == "" { //主动绑定-建立双向绑定关系||跳转绑定新手机号
|
|
if relationPhoneId == "" {
|
|
if relationPhoneId == "" {
|
|
//船新用户 查看是否有邀请关系 shareRedisName
|
|
//船新用户 查看是否有邀请关系 shareRedisName
|
|
@@ -656,7 +655,6 @@ func (this *UserAccount) PhoneBind() {
|
|
}
|
|
}
|
|
// 新用户注册 记录来源
|
|
// 新用户注册 记录来源
|
|
sourceLabel := redis.GetStr("limitation", fmt.Sprintf("firstVisitTagByWX_%s", this.Session().Id()))
|
|
sourceLabel := redis.GetStr("limitation", fmt.Sprintf("firstVisitTagByWX_%s", this.Session().Id()))
|
|
- log.Println("111", sourceLabel)
|
|
|
|
if sourceLabel != "" {
|
|
if sourceLabel != "" {
|
|
data["s_rsource"] = sourceLabel
|
|
data["s_rsource"] = sourceLabel
|
|
} else {
|
|
} else {
|
|
@@ -665,8 +663,6 @@ func (this *UserAccount) PhoneBind() {
|
|
data["s_rsource"] = activity
|
|
data["s_rsource"] = activity
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- log.Println("222", this.GetString("activity"))
|
|
|
|
- log.Println("333", userId, relationPhoneId, phoneVerify, email, &data)
|
|
|
|
if jy.IsEmail(email) {
|
|
if jy.IsEmail(email) {
|
|
data["s_email"] = email
|
|
data["s_email"] = email
|
|
}
|
|
}
|