This commit is contained in:
邹宗楠
2021-12-13 18:25:14 +08:00
parent 293107f6f9
commit b4f1d0627e

View File

@@ -404,25 +404,25 @@ func genSkuParamsFromStoreSkuInfo2(storeSku *dao.StoreSkuSyncInfo, isCreate, isE
}
photos := []map[string]interface{}{
map[string]interface{}{
"is_master": 1,
"is_master": true,
"url": img,
},
}
if storeSku.Img2 != "" {
photos = append(photos, map[string]interface{}{
"is_master": 0,
"is_master": false,
"url": storeSku.Img2,
})
}
if storeSku.Img3 != "" {
photos = append(photos, map[string]interface{}{
"is_master": 0,
"is_master": false,
"url": storeSku.Img3,
})
}
if storeSku.Img4 != "" {
photos = append(photos, map[string]interface{}{
"is_master": 0,
"is_master": false,
"url": storeSku.Img4,
})
}