Commit 06c00213 by 杨树贤

判断库存的逻辑延后

parent 20e8bb08
Showing with 2 additions and 2 deletions
...@@ -304,14 +304,14 @@ func (ls *LyService) LyGoodsDetail(ctx context.Context, params RequestParams, go ...@@ -304,14 +304,14 @@ func (ls *LyService) LyGoodsDetail(ctx context.Context, params RequestParams, go
sku.LadderPriceResult = []int{} sku.LadderPriceResult = []int{}
} }
sku.Stock = ls.GetStock(sku)
//判断是否可以购买 //判断是否可以购买
sku.IsBuy = ls.GetIsBuy(sku) sku.IsBuy = ls.GetIsBuy(sku)
if sku.IsBuy == 0 && sku.OrgId != 1 { if sku.IsBuy == 0 && sku.OrgId != 1 {
sku.AcType = 0 sku.AcType = 0
} }
sku.Stock = ls.GetStock(sku)
//获取标签信息 //获取标签信息
var TagService TagsService var TagService TagsService
sku.GoodsTag = TagService.GetLyTags(sku) sku.GoodsTag = TagService.GetLyTags(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