Commit 12e8ecbc by hcy001

1

parent 9c6c7f7d
Showing with 2 additions and 2 deletions
...@@ -126,8 +126,8 @@ func (qs *ZiyingService) ZyGoodsDetail(ctx *gin.Context, goodsIds []string, ch c ...@@ -126,8 +126,8 @@ func (qs *ZiyingService) ZyGoodsDetail(ctx *gin.Context, goodsIds []string, ch c
lockStock := qs.skuLockNum(&redisConn, goodsId) //当前锁库库存 lockStock := qs.skuLockNum(&redisConn, goodsId) //当前锁库库存
stockG := dbStock - lockStock //当前可购买库存 stockG := dbStock - lockStock //当前可购买库存
if stockG > 0 { if stockG > 0 {
A.Set("actual_stock", gjson.Get(info, "actual_stock").Int()) //锁定库存 A.Set("actual_stock", dbStock) //锁定库存
A.Set("stock", dbStock) A.Set("stock", stockG)
} }
A.Set("saler_atio", "") // A.Set("saler_atio", "") //
} }
......
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