Commit 6f9c359b by 杨树贤

Merge branch 'master' into dev

parents ed6c30a1 0651fec3
Showing with 2 additions and 1 deletions
...@@ -266,8 +266,9 @@ func (ls *LyService) GetStock(sku model.LySku) (stock int64) { ...@@ -266,8 +266,9 @@ func (ls *LyService) GetStock(sku model.LySku) (stock int64) {
redisCon := gredis.Conn("search_r") redisCon := gredis.Conn("search_r")
stockStr, _ := redis.String(redisCon.Do("HGET", "sku_lock_stock", sku.GoodsId)) stockStr, _ := redis.String(redisCon.Do("HGET", "sku_lock_stock", sku.GoodsId))
stock, _ = strconv.ParseInt(stockStr, 10, 64) stock, _ = strconv.ParseInt(stockStr, 10, 64)
return sku.Stock - stock
} }
return return sku.Stock
} }
// 合并spu的信息 // 合并spu的信息
......
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