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
90184036
authored
Dec 01, 2020
by
huangchengyi
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
1.0
parent
67a344f0
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
.gitignore
cmd/cron/mylogs/2020-10-13_3333.txt
service/service_zy_cron.go
.gitignore
View file @
90184036
...
...
@@ -11,3 +11,4 @@ cmd.exe~
/conf/prod/*.ini
/conf
/logs
cmd/cron/mylogs/2020-10-13_3333.txt
deleted
100644 → 0
View file @
67a344f0
2020-10-13 16:44:56----dddd
2020-10-13 16:59:28----dddd
\ No newline at end of file
service/service_zy_cron.go
View file @
90184036
...
...
@@ -214,7 +214,10 @@ func (a *ZyCronService) ZyDiscount(checkGoodsId string) {
"szlc_price"
:
szlcPriceStr
,
"price_ac"
:
gconv
.
String
(
ratioPrice
),
})
redisConn
.
Do
(
"HSET"
,
"zy_ratio_sku"
,
now_goods_id
,
string
(
ratioRes
))
//写入缓存
_
,
err
:=
redisConn
.
Do
(
"HSET"
,
"zy_ratio_sku"
,
now_goods_id
,
string
(
ratioRes
))
//写入缓存
if
err
!=
nil
{
fmt
.
Println
(
err
)
}
//最后写日志
logger
.
Log
(
"计算阶梯价成功 goods_id: "
+
now_goods_id
+
" 原始梯度价:"
+
a
[
"ladder_price"
]
+
" 立创梯度价: "
+
szlcPriceStr
+
" 结果:"
+
string
(
ratioRes
),
"ratio_sku_"
,
1
)
...
...
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