Commit aaa2c2e1 by huangchengyi

1.0

parent 6824a574
......@@ -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{}
......
......@@ -33,7 +33,7 @@ func (a *ZyCronService) ZyDiscount(checkGoodsId string) {
)
defer redisConn.Close()
if checkGoodsId != "" {
if checkGoodsId == "" {
redisConn.Do("del","zy_ratio_sku") //删除所有系数缓存
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment