Commit 2f2b14a1 by mushishixian

库存问题

parent 12e8ecbc
Showing with 5 additions and 0 deletions
......@@ -159,6 +159,11 @@ func (ls *LyService) LyGoodsDetail(ctx *gin.Context, goodsIds []string, ch chan
sku.LadderPriceResult = []int{}
}
//过期修改库存为0
if sku.IsExpire == 1 {
sku.Stock = 0
}
//判断是否可以购买
sku.IsBuy = ls.GetIsBuy(sku)
......
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