diff --git a/controller/mall.go b/controller/mall.go index 91144b8..4c20124 100644 --- a/controller/mall.go +++ b/controller/mall.go @@ -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 }