aa
This commit is contained in:
@@ -483,7 +483,7 @@ func (p *PurchaseHandler) UpdateStoreSkusStatus(ctx *jxcontext.Context, vendorOr
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if vendorSkuID, err := getMainStoreVendorSkuID(model.JdShopMainStoreID2, v.SkuID); err == nil {
|
if vendorSkuID, err := getMainStoreVendorSkuID(model.JdShopMainStoreID2, v.SkuID); err == nil && vendorSkuID != 0 {
|
||||||
err = api.JdShop2API.StoreWareDoUpdate(status, vendorSkuID, vendorStoreID)
|
err = api.JdShop2API.StoreWareDoUpdate(status, vendorSkuID, vendorStoreID)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -504,10 +504,11 @@ func (p *PurchaseHandler) UpdateStoreSkusPrice(ctx *jxcontext.Context, vendorOrg
|
|||||||
} else if storeID == model.JdShopMainStoreID2 {
|
} else if storeID == model.JdShopMainStoreID2 {
|
||||||
//修改京东商城商品库价格
|
//修改京东商城商品库价格
|
||||||
} else {
|
} else {
|
||||||
|
fmt.Println("ttttttttttttttttttttttttttttttttttttttttt", utils.Format4Output(v, false))
|
||||||
if v.VendorOrgCode == "1" {
|
if v.VendorOrgCode == "1" {
|
||||||
// null
|
// null
|
||||||
} else {
|
} else {
|
||||||
if vendorSkuID, err := getMainStoreVendorSkuID(model.JdShopMainStoreID2, v.SkuID); err == nil {
|
if vendorSkuID, err := getMainStoreVendorSkuID(model.JdShopMainStoreID2, v.SkuID); err == nil && vendorSkuID != 0 {
|
||||||
err = api.JdShop2API.StoreUpdatePrice(utils.Float64ToStr(jxutils.IntPrice2Standard(v.VendorPrice)), vendorSkuID, vendorStoreID)
|
err = api.JdShop2API.StoreUpdatePrice(utils.Float64ToStr(jxutils.IntPrice2Standard(v.VendorPrice)), vendorSkuID, vendorStoreID)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -528,8 +529,12 @@ func (p *PurchaseHandler) UpdateStoreSkusStock(ctx *jxcontext.Context, vendorOrg
|
|||||||
} else if storeID == model.JdShopMainStoreID2 {
|
} else if storeID == model.JdShopMainStoreID2 {
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
if vendorSkuID, err := getMainStoreVendorSkuID(model.JdShopMainStoreID2, v.SkuID); err == nil {
|
if v.VendorOrgCode == "1" {
|
||||||
err = api.JdShop2API.StoreUpdateStock(v.Stock, vendorSkuID, vendorStoreID)
|
|
||||||
|
} else {
|
||||||
|
if vendorSkuID, err := getMainStoreVendorSkuID(model.JdShopMainStoreID2, v.SkuID); err == nil && vendorSkuID != 0 {
|
||||||
|
err = api.JdShop2API.StoreUpdateStock(v.Stock, vendorSkuID, vendorStoreID)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user