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
c22c15ef
authored
Jul 03, 2020
by
Joneq
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
修改代码
parent
5d4de97c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
10 deletions
go.sum
internal/logic/member_user.go
go.sum
View file @
c22c15ef
...
...
@@ -162,6 +162,7 @@ github.com/prometheus/common v0.6.0 h1:kRhiuYSXR3+uv2IbVbZhUxK5zVD/2pp3Gd2PpvPkp
github.com/prometheus/common v0.6.0/go.mod h1:eBmuwkDJBwy6iBfxCBob6t6dR6ENT/y+J+Zk0j9GMYc=
github.com/prometheus/procfs v0.0.0-20181005140218-185b4288413d/go.mod h1:c3At6R/oaqEKCNdg8wHV1ftS6bRYblBhIjjI8uT2IGk=
github.com/prometheus/procfs v0.0.2/go.mod h1:TjEm7ze935MbeOT/UhFTIMYKhuLP4wbCsTZCD3I8kEA=
github.com/prometheus/procfs v0.0.3 h1:CTwfnzjQ+8dS6MhHHu4YswVAD99sL2wjPqP+VkURmKE=
github.com/prometheus/procfs v0.0.3/go.mod h1:4A/X28fw3Fc593LaREMrKMqOKvUAntwMDaekg4FpcdQ=
github.com/rcrowley/go-metrics v0.0.0-20181016184325-3113b8401b8a/go.mod h1:bCqnVzQkZxMG4s8nGwiZ5l3QUCyqpo9Y+/ZMZ9VjZe4=
github.com/remyoudompheng/bigfft v0.0.0-20190728182440-6a916e37a237/go.mod h1:qqbHyh8v60DhA7CoWK5oRCqLrMHRGoxYCSS9EjAz6Eo=
...
...
internal/logic/member_user.go
View file @
c22c15ef
...
...
@@ -117,22 +117,15 @@ func HandleData(MemberUserInfo model.MemberAddUserData) model.MemberAddUserData{
ptag
=
strings
.
Split
(
ptag
,
","
)[
0
]
MemberUserInfo
.
Ptag
=
strings
.
Split
(
ptag
,
","
)[
0
]
switch
ptag
{
case
"ptag=activity-140"
:
case
"ptag=activity-141"
:
case
"ptag=activity-143"
:
case
"ptag=activity-144"
:
case
"ptag=activity-140"
,
"ptag=activity-141"
,
"ptag=activity-143"
,
"ptag=activity-144"
:
MemberUserInfo
.
Customer_identity
=
2
//如果是以上ptag则为采购用户
MemberUserInfo
.
Channel_source
=
9
//如果是以上ptag则为展会用户
break
case
"ptag=activity-142"
:
case
"ptag=activity-145"
:
case
"ptag=activity-142"
,
"ptag=activity-145"
:
MemberUserInfo
.
Customer_identity
=
1
//如果是以上ptag则为工程师
MemberUserInfo
.
Channel_source
=
9
//如果是以上ptag则为展会用户
break
case
"ptag=sample"
:
case
"ptag=sample-pop"
:
case
"ptag=samplereg"
:
case
"ptag=sample-stopnav"
:
case
"ptag=sample"
,
"ptag=sample-pop"
,
"ptag=samplereg"
,
"ptag=sample-stopnav"
:
MemberUserInfo
.
Channel_source
=
10
//如果是以上ptag则为自营样片
break
case
"ptag=jr"
:
...
...
@@ -142,6 +135,7 @@ func HandleData(MemberUserInfo model.MemberAddUserData) model.MemberAddUserData{
MemberUserInfo
.
Channel_source
=
12
//如果是以上ptag则为信用贷测评
break
}
SetTagSale
(
ptag
,
&
MemberUserInfo
)
}
...
...
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