1
This commit is contained in:
@@ -404,31 +404,31 @@ func genSkuParamsFromStoreSkuInfo2(storeSku *dao.StoreSkuSyncInfo, isCreate, isE
|
||||
}
|
||||
photos := []map[string]interface{}{
|
||||
map[string]interface{}{
|
||||
"is_master": true,
|
||||
"is_master": 1,
|
||||
"url": img,
|
||||
},
|
||||
}
|
||||
if storeSku.Img2 != "" {
|
||||
photos = append(photos, map[string]interface{}{
|
||||
"is_master": false,
|
||||
"is_master": 0,
|
||||
"url": storeSku.Img2,
|
||||
})
|
||||
}
|
||||
if storeSku.Img3 != "" {
|
||||
photos = append(photos, map[string]interface{}{
|
||||
"is_master": false,
|
||||
"is_master": 0,
|
||||
"url": storeSku.Img3,
|
||||
})
|
||||
}
|
||||
if storeSku.Img4 != "" {
|
||||
photos = append(photos, map[string]interface{}{
|
||||
"is_master": false,
|
||||
"is_master": 0,
|
||||
"url": storeSku.Img4,
|
||||
})
|
||||
}
|
||||
if storeSku.Img5 != "" {
|
||||
photos = append(photos, map[string]interface{}{
|
||||
"is_master": false,
|
||||
"is_master": 0,
|
||||
"url": storeSku.Img5,
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user