京东商城更新商品,其他肉类不传配送时效

This commit is contained in:
苏尹岚
2020-06-30 14:31:10 +08:00
parent 13292f3ef8
commit 73a7f5cfc2

View File

@@ -120,10 +120,13 @@ func (p *PurchaseHandler) UpdateStoreSkus(ctx *jxcontext.Context, storeID int, v
WareID: v.JdsWareID, WareID: v.JdsWareID,
Title: name, Title: name,
VenderID: jdshopapi.VenderID, VenderID: jdshopapi.VenderID,
PromiseID: jdshopapi.JdsPromiseID, // PromiseID: jdshopapi.JdsPromiseID,
ShopCategorys: []int{utils.Str2Int(v.VendorCatID)}, ShopCategorys: []int{utils.Str2Int(v.VendorCatID)},
JdPrice: jxutils.IntPrice2Standard(v.UnitPrice), JdPrice: jxutils.IntPrice2Standard(v.UnitPrice),
} }
if v.VendorVendorCatID != jdshopapi.JdsOtherMeatCatID {
updateWareParam.PromiseID = jdshopapi.JdsPromiseID
}
var desc string var desc string
if v.DescImg != "" { if v.DescImg != "" {
pic3, err2 := uploadImg2(v.DescImg, name, "desc") pic3, err2 := uploadImg2(v.DescImg, name, "desc")