商品详情展示第一个sku价格

This commit is contained in:
范俊成 2023-09-21 10:54:02 +08:00
parent 3e060c364f
commit d292ab57f0

View File

@ -70,6 +70,11 @@ func MallGoodsDetail(c *gin.Context) {
return return
} }
cm := model.GetGoodsFirstSkuCombo([]uint32{detail.GoodsId})
if len(cm) > 0 {
detail.Combo = &cm[0]
}
RespOK(c, detail) RespOK(c, detail)
return return
} }