京东商城更新商品,其他肉类不传配送时效
This commit is contained in:
@@ -117,13 +117,16 @@ func (p *PurchaseHandler) UpdateStoreSkus(ctx *jxcontext.Context, storeID int, v
|
|||||||
for _, v := range storeSkuList {
|
for _, v := range storeSkuList {
|
||||||
name := filterSensitiveWord(v.Name)
|
name := filterSensitiveWord(v.Name)
|
||||||
updateWareParam := &jdshopapi.UpdateWareParam{
|
updateWareParam := &jdshopapi.UpdateWareParam{
|
||||||
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")
|
||||||
|
|||||||
Reference in New Issue
Block a user