Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
黄成意
/
go_sku_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
750ceea8
authored
Dec 09, 2020
by
huangchengyi
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
1.0
parent
44001764
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
10 deletions
service/service_zy_common.go
service/service_zy_common.go
View file @
750ceea8
...
...
@@ -148,19 +148,21 @@ func (qs *ZiyingService) HDActivityPrice(ctx *gin.Context,GoodsActivityPrice str
//会员价处理
if
Actype
==
"3"
&&
is_part
==
"1"
&&
visible_roster
!=
""
{
visible_roster
=
","
+
visible_roster
+
","
if
php2go
.
Stripos
(
visible_roster
,
","
+
ctx
.
Request
.
FormValue
(
"power[user_id]"
)
+
","
,
0
)
==
-
1
||
php2go
.
Stripos
(
visible_roster
,
","
+
ctx
.
Request
.
FormValue
(
"power[mobile]"
)
+
","
,
0
)
==
-
1
||
php2go
.
Stripos
(
visible_roster
,
","
+
ctx
.
Request
.
FormValue
(
"power[email]"
)
+
","
,
0
)
==
-
1
{
Ratio
=
false
;
//不符合新客价
goto
End
Ratio
=
false
;
//
visible_roster
=
","
+
visible_roster
+
","
if
php2go
.
Stripos
(
visible_roster
,
","
+
ctx
.
Request
.
FormValue
(
"power[user_id]"
)
+
","
,
0
)
!=
-
1
{
Ratio
=
true
;
}
if
php2go
.
Stripos
(
visible_roster
,
","
+
ctx
.
Request
.
FormValue
(
"power[mobile]"
)
+
","
,
0
)
!=
-
1
{
Ratio
=
true
;
}
if
php2go
.
Stripos
(
visible_roster
,
","
+
ctx
.
Request
.
FormValue
(
"power[email]"
)
+
","
,
0
)
!=
-
1
{
Ratio
=
true
;
}
//fmt.Println("不符合活动价3")
}
//处理黑名单,只有折扣活动才有黑名单,并且是下单页面,debug
if
Actype
==
"2"
&&
activity_id
!=
""
&&
activity_type
==
"2"
&&
ctx
.
Request
.
FormValue
(
"power[verify_blacklist]"
)
==
"true"
{
if
Ratio
==
true
&&
Actype
==
"2"
&&
activity_id
!=
""
&&
activity_type
==
"2"
&&
ctx
.
Request
.
FormValue
(
"power[verify_blacklist]"
)
==
"true"
{
//redisConn := gredis.Conn("search_r")
//defer redisConn.Close();
...
...
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