Commit 423d7f19 by 朱继来

调整用户来源取值

parent 13d61037
Showing with 4 additions and 5 deletions
...@@ -171,7 +171,6 @@ func HandleData(MemberUserInfo model.MemberAddUserData) model.MemberAddUserData{ ...@@ -171,7 +171,6 @@ func HandleData(MemberUserInfo model.MemberAddUserData) model.MemberAddUserData{
ptag = regexp.MustCompile(PtagRex).FindString(MemberUserInfo.Reg_Remark) ptag = regexp.MustCompile(PtagRex).FindString(MemberUserInfo.Reg_Remark)
refer = regexp.MustCompile(ReferRex).FindString(MemberUserInfo.Reg_Remark) refer = regexp.MustCompile(ReferRex).FindString(MemberUserInfo.Reg_Remark)
if refer != ""{ if refer != ""{
refer = strings.Split(refer,",")[0] refer = strings.Split(refer,",")[0]
//如果是以上refer则为自营样片 //如果是以上refer则为自营样片
...@@ -198,7 +197,7 @@ func HandleData(MemberUserInfo model.MemberAddUserData) model.MemberAddUserData{ ...@@ -198,7 +197,7 @@ func HandleData(MemberUserInfo model.MemberAddUserData) model.MemberAddUserData{
case "ptag=jr": case "ptag=jr":
MemberUserInfo.Channel_source = 11//如果是以上ptag则为信用金融 MemberUserInfo.Channel_source = 11//如果是以上ptag则为信用金融
break break
case "ptag=edcp": case "ptag=edcp","ptag=edcp-pop":
MemberUserInfo.Channel_source = 12//如果是以上ptag则为信用贷测评 MemberUserInfo.Channel_source = 12//如果是以上ptag则为信用贷测评
break break
} }
...@@ -212,10 +211,10 @@ func HandleData(MemberUserInfo model.MemberAddUserData) model.MemberAddUserData{ ...@@ -212,10 +211,10 @@ func HandleData(MemberUserInfo model.MemberAddUserData) model.MemberAddUserData{
if adtag != "" { if adtag != "" {
adtag = strings.Split(adtag,",")[0] adtag = strings.Split(adtag,",")[0]
MemberUserInfo.Adtag = adtag MemberUserInfo.Adtag = adtag
if adtag == "adtag=bps" { if strings.Contains(adtag,"adtag=bps") {
MemberUserInfo.Channel_source = 13//如果是以上adtag则为白皮书下载用户 MemberUserInfo.Channel_source = 13//如果是以上adtag则为白皮书下载用户
} }
if adtag == "adtag=findchips" { if regexp.MustCompile("(?i)adtag=findchips").MatchString(adtag) {
MemberUserInfo.Channel_source = 14//如果是以上adtagfindchips广告 MemberUserInfo.Channel_source = 14//如果是以上adtagfindchips广告
} }
...@@ -223,7 +222,7 @@ func HandleData(MemberUserInfo model.MemberAddUserData) model.MemberAddUserData{ ...@@ -223,7 +222,7 @@ func HandleData(MemberUserInfo model.MemberAddUserData) model.MemberAddUserData{
if strings.Contains(adtag,"adtag=sc-") { if strings.Contains(adtag,"adtag=sc-") {
MemberUserInfo.Channel_source = 17//如果是以上adtag市场渠道 MemberUserInfo.Channel_source = 17//如果是以上adtag市场渠道
} }
if strings.Contains(adtag,"adtag=shequn-") { if strings.Contains(adtag,"adtag=shequn-") || strings.Contains(adtag,"adtag=gcs") || strings.Contains(adtag,"adtag=4hd-") {
MemberUserInfo.Channel_source = 2//如果是以上adtag社群 MemberUserInfo.Channel_source = 2//如果是以上adtag社群
} }
if strings.Contains(adtag,"adtag=zh-") { if strings.Contains(adtag,"adtag=zh-") {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment