Commit dc8d4f20 by 杨树贤

修复

parent 0b345275
Showing with 1 additions and 0 deletions
......@@ -266,6 +266,7 @@ func (ls *LyService) GetStock(sku model.LySku) (stock int64) {
redisCon := gredis.Conn("search_r")
stockStr, _ := redis.String(redisCon.Do("HGET", "sku_lock_stock", sku.GoodsId))
stock, _ = strconv.ParseInt(stockStr, 10, 64)
return stock
}
return sku.Stock
}
......
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