商品列表sku价格

This commit is contained in:
范俊成 2023-09-20 15:59:25 +08:00
parent a20b4b7ec8
commit fc5fe71c2e

View File

@ -68,11 +68,12 @@ func GoodsList(c *gin.Context) {
if len(ids) > 0 {
cm := models.GetGoodsFirstSkuCombo(ids)
fmt.Println(cm)
if cm != nil {
for _, combo := range cm {
for j, combo := range cm {
for i, goods := range goodsList {
if combo.GoodsId == goods.GoodsId {
goodsList[i].Combo = &combo
goodsList[i].Combo = &cm[j]
}
}
}