商品详情展示第一个sku价格
This commit is contained in:
parent
3e060c364f
commit
d292ab57f0
|
@ -70,6 +70,11 @@ func MallGoodsDetail(c *gin.Context) {
|
|||
return
|
||||
}
|
||||
|
||||
cm := model.GetGoodsFirstSkuCombo([]uint32{detail.GoodsId})
|
||||
if len(cm) > 0 {
|
||||
detail.Combo = &cm[0]
|
||||
}
|
||||
|
||||
RespOK(c, detail)
|
||||
return
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user