Commit 90184036 by huangchengyi

1.0

parent 67a344f0
......@@ -11,3 +11,4 @@ cmd.exe~
/conf/prod/*.ini
/conf
/logs
2020-10-13 16:44:56----dddd
2020-10-13 16:59:28----dddd
\ No newline at end of file
......@@ -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)
......
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