Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
CnChunfeng
/
crm_server
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
423d7f19
authored
Jul 05, 2022
by
朱继来
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
调整用户来源取值
parent
13d61037
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
internal/logic/member_user.go
internal/logic/member_user.go
View file @
423d7f19
...
...
@@ -171,7 +171,6 @@ func HandleData(MemberUserInfo model.MemberAddUserData) model.MemberAddUserData{
ptag
=
regexp
.
MustCompile
(
PtagRex
)
.
FindString
(
MemberUserInfo
.
Reg_Remark
)
refer
=
regexp
.
MustCompile
(
ReferRex
)
.
FindString
(
MemberUserInfo
.
Reg_Remark
)
if
refer
!=
""
{
refer
=
strings
.
Split
(
refer
,
","
)[
0
]
//如果是以上refer则为自营样片
...
...
@@ -198,7 +197,7 @@ func HandleData(MemberUserInfo model.MemberAddUserData) model.MemberAddUserData{
case
"ptag=jr"
:
MemberUserInfo
.
Channel_source
=
11
//如果是以上ptag则为信用金融
break
case
"ptag=edcp"
:
case
"ptag=edcp"
,
"ptag=edcp-pop"
:
MemberUserInfo
.
Channel_source
=
12
//如果是以上ptag则为信用贷测评
break
}
...
...
@@ -212,10 +211,10 @@ func HandleData(MemberUserInfo model.MemberAddUserData) model.MemberAddUserData{
if
adtag
!=
""
{
adtag
=
strings
.
Split
(
adtag
,
","
)[
0
]
MemberUserInfo
.
Adtag
=
adtag
if
adtag
==
"adtag=bps"
{
if
strings
.
Contains
(
adtag
,
"adtag=bps"
)
{
MemberUserInfo
.
Channel_source
=
13
//如果是以上adtag则为白皮书下载用户
}
if
adtag
==
"adtag=findchips"
{
if
regexp
.
MustCompile
(
"(?i)adtag=findchips"
)
.
MatchString
(
adtag
)
{
MemberUserInfo
.
Channel_source
=
14
//如果是以上adtagfindchips广告
}
...
...
@@ -223,7 +222,7 @@ func HandleData(MemberUserInfo model.MemberAddUserData) model.MemberAddUserData{
if
strings
.
Contains
(
adtag
,
"adtag=sc-"
)
{
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社群
}
if
strings
.
Contains
(
adtag
,
"adtag=zh-"
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment