This commit is contained in:
苏尹岚
2021-02-19 16:59:13 +08:00
parent 1b3bcb8b6a
commit 63fea2e47b
3 changed files with 4 additions and 4 deletions

View File

@@ -397,7 +397,7 @@ func (p *PurchaseHandler) UpdateStoreSkusStock(ctx *jxcontext.Context, vendorOrg
func genSkuParamsFromStoreSkuInfo2(storeSku *dao.StoreSkuSyncInfo, isCreate, isExd bool) (params map[string]interface{}) {
var img string
if storeSku.ImgMix != "" && storeSku.BrandID == storeSku.ExBrandID {
if storeSku.ImgMix != "" && ((storeSku.BrandID == storeSku.ExBrandID && storeSku.ExBrandID != 0) || storeSku.ExBrandID == 0) {
img = storeSku.ImgMix
} else {
img = storeSku.Img