Commit 0651fec3 by 杨树贤

修复

parent dc8d4f20
Showing with 1 additions and 1 deletions
......@@ -266,7 +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 - 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