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
0ff12139
authored
Dec 09, 2020
by
mushishixian
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
debug
parent
560140ec
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
service/service_price.go
service/service_price.go
View file @
0ff12139
...
...
@@ -24,6 +24,7 @@ func (ls *LyService) GetActivityPrice(sku model.LySku, suffix string, power Powe
return
getMouserActivityPrice
(
sku
)
}
contentSlice
=
append
(
contentSlice
,
sku
)
sku
.
Content
=
contentSlice
//先获取活动信息,针对不同供应商不同活动类型做活动吗,每个活动只能针对一个供应商
//比如有 Self_ActivityPrice_2_Discount,Self_ActivityPrice_1_NewCustomer
redisCon
:=
gredis
.
Conn
(
"default_r"
)
...
...
@@ -31,6 +32,7 @@ contentSlice = append(contentSlice,sku)
supplierIdStr
:=
strconv
.
Itoa
(
int
(
sku
.
SupplierId
))
activityInfo
,
_
:=
redis
.
String
(
redisCon
.
Do
(
"GET"
,
"Self_ActivityPrice_"
+
supplierIdStr
+
suffix
))
contentSlice
=
append
(
contentSlice
,
activityInfo
)
sku
.
Content
=
contentSlice
//找不到对应的活动价格信息,就直接返回空
if
activityInfo
==
""
{
...
...
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