修改京东商城商品属性

This commit is contained in:
苏尹岚
2020-05-27 14:45:24 +08:00
parent 74bc4764f7
commit e58bc63c82

View File

@@ -432,8 +432,10 @@ func syncStoreSkuNew(ctx *jxcontext.Context, parentTask tasksch.ITask, causeFlag
var failedList []*partner.StoreSkuInfoWithErr var failedList []*partner.StoreSkuInfoWithErr
for _, sku := range skus { for _, sku := range skus {
if vendorID == model.VendorIDJDShop && storeID != model.JdShopMainStoreID { if vendorID == model.VendorIDJDShop && storeID != model.JdShopMainStoreID {
if sku.SkuSyncStatus != 0 {
sku.SkuSyncStatus = model.SyncFlagSaleMask sku.SkuSyncStatus = model.SyncFlagSaleMask
} }
}
if !useVendorPriceDirectly && if !useVendorPriceDirectly &&
!isSkuLockTimeValid(sku) { !isSkuLockTimeValid(sku) {
sku.VendorPrice = 0 sku.VendorPrice = 0