This commit is contained in:
邹宗楠
2024-04-22 17:58:24 +08:00
parent 32c2e1e7b9
commit ad57146b69

View File

@@ -371,18 +371,18 @@ func (p *PurchaseHandler) createOrUpdateStoreSkus(ctx *jxcontext.Context, storeI
img3 := storeSku.Img3
img4 := storeSku.Img4
img5 := storeSku.Img5
if img2 == "" {
img2 = storeSku.Img
}
if img3 == "" {
img3 = storeSku.Img
}
if img4 == "" {
img4 = storeSku.Img
}
if img5 == "" {
img5 = storeSku.Img
}
//if img2 == "" {
// img2 = storeSku.Img
//}
//if img3 == "" {
// img3 = storeSku.Img
//}
//if img4 == "" {
// img4 = storeSku.Img
//}
//if img5 == "" {
// img5 = storeSku.Img
//}
if storeSku.ImgMix != "" && ((storeSku.BrandID == storeSku.ExBrandID && storeSku.ExBrandID != 0) || storeSku.ExBrandID == 0) {
foodData["picture"] = strings.Join(jxutils.BatchString2Slice(storeSku.ImgMix, img2, img3, img4, img5), ",")
} else {