From d292ab57f0f9cf57755661f6d597175847d675bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8C=83=E4=BF=8A=E6=88=90?= Date: Thu, 21 Sep 2023 10:54:02 +0800 Subject: [PATCH] =?UTF-8?q?=E5=95=86=E5=93=81=E8=AF=A6=E6=83=85=E5=B1=95?= =?UTF-8?q?=E7=A4=BA=E7=AC=AC=E4=B8=80=E4=B8=AAsku=E4=BB=B7=E6=A0=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- controller/mall.go | 5 +++++ 1 file changed, 5 insertions(+) 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 }