Commit 2503d611 by mushishixian

过期库存为0问题

parent af40d433
Showing with 4 additions and 4 deletions
...@@ -168,10 +168,10 @@ func (ls *LyService) LyGoodsDetail(ctx *gin.Context, goodsIds []string, ch chan ...@@ -168,10 +168,10 @@ func (ls *LyService) LyGoodsDetail(ctx *gin.Context, goodsIds []string, ch chan
//判断是否可以购买 //判断是否可以购买
sku.IsBuy = ls.GetIsBuy(sku) sku.IsBuy = ls.GetIsBuy(sku)
////过期修改库存为0 //过期修改库存为0
//if sku.IsExpire == 1 { if sku.IsExpire == 1 && sku.SupplierId != 17 {
// sku.Stock = 0 sku.Stock = 0
//} }
var TagService TagsService var TagService TagsService
sku.GoodsTag = TagService.GetTags(sku.GoodsId, 0) sku.GoodsTag = TagService.GetTags(sku.GoodsId, 0)
......
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