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

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

View File

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