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
b72a1dab
authored
Dec 10, 2020
by
mushishixian
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
去掉调试代码
parent
93fecd46
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
14 deletions
service/service_price.go
service/service_price.go
View file @
b72a1dab
...
...
@@ -14,7 +14,6 @@ import (
//获取联营活动价
func
(
ls
*
LyService
)
GetActivityPrice
(
sku
model
.
LySku
,
suffix
string
,
power
Power
)
model
.
LySku
{
//没价格,直接返回
var
contentSlice
[]
interface
{}
if
len
(
sku
.
LadderPrice
)
==
0
{
return
sku
}
...
...
@@ -113,19 +112,11 @@ func (ls *LyService) GetActivityPrice(sku model.LySku, suffix string, power Powe
default
:
//除了新客价和折扣价,剩下的价格活动
if
len
(
brandIds
)
>
0
{
contentSlice
=
append
(
contentSlice
,
"品牌id"
)
contentSlice
=
append
(
contentSlice
,
sku
.
BrandId
)
contentSlice
=
append
(
contentSlice
,
brandIds
)
sku
.
Content
=
contentSlice
if
!
php2go
.
InArray
(
sku
.
BrandId
,
brandIds
)
{
contentSlice
=
append
(
contentSlice
,
"活动状态错误"
)
sku
.
Content
=
contentSlice
hasActivity
=
false
}
}
if
activityCanal
!=
""
&&
sku
.
GoodsType
==
2
{
contentSlice
=
append
(
contentSlice
,
"活动状态错误2"
)
sku
.
Content
=
contentSlice
canalArr
:=
gjson
.
Parse
(
activityCanal
)
.
Array
()
var
canals
[]
string
for
_
,
canal
:=
range
canalArr
{
...
...
@@ -142,8 +133,6 @@ func (ls *LyService) GetActivityPrice(sku model.LySku, suffix string, power Powe
visibleRoster
:=
gjson
.
Get
(
activityInfo
,
"visible_roster"
)
.
String
()
if
suffix
==
"_Member"
&&
gjson
.
Get
(
activityInfo
,
"is_part"
)
.
Int
()
==
1
&&
visibleRoster
!=
""
{
contentSlice
=
append
(
contentSlice
,
"进来进来"
)
sku
.
Content
=
contentSlice
//为了用字符串匹配
visibleRoster
=
","
+
visibleRoster
+
","
//提取出user_id、手机号、邮箱
...
...
@@ -196,9 +185,6 @@ func (ls *LyService) GetActivityPrice(sku model.LySku, suffix string, power Powe
//}
}
}
contentSlice
=
append
(
contentSlice
,
"提前返回"
)
contentSlice
=
append
(
contentSlice
,
hasActivity
)
sku
.
Content
=
contentSlice
//判断是否有活动
if
!
hasActivity
{
return
sku
...
...
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