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
aaa2c2e1
authored
Dec 03, 2020
by
huangchengyi
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
1.0
parent
6824a574
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletions
cmd/cron/cron_server.go
service/service_zy_cron.go
cmd/cron/cron_server.go
View file @
aaa2c2e1
...
...
@@ -2,6 +2,7 @@ package main
import
(
"flag"
"fmt"
"go_sku_server/boot"
"go_sku_server/pkg/logger"
"go_sku_server/service"
...
...
@@ -19,6 +20,7 @@ func main() {
if
err
:=
boot
.
Boot
(
path
);
err
!=
nil
{
panic
(
err
)
}
fmt
.
Print
(
goods_id
)
logger
.
Log
(
"启动任务"
,
"ratio"
,
1
)
ZyCronService
:=
service
.
ZyCronService
{}
...
...
service/service_zy_cron.go
View file @
aaa2c2e1
...
...
@@ -33,7 +33,7 @@ func (a *ZyCronService) ZyDiscount(checkGoodsId string) {
)
defer
redisConn
.
Close
()
if
checkGoodsId
!
=
""
{
if
checkGoodsId
=
=
""
{
redisConn
.
Do
(
"del"
,
"zy_ratio_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