京东商城牛肉分类热卖时间增加
This commit is contained in:
@@ -593,7 +593,7 @@ func buildCreateWareParam(storeSku *dao.StoreSkuSyncInfo) (createSkuParamWare *j
|
||||
values2, _, err2 := api.JdShopAPI.FindValuesByAttrId(attrIDs["热卖时间"])
|
||||
err = err2
|
||||
for _, v := range values2 {
|
||||
if v.Name == "6月" {
|
||||
if v.Name == "12月" {
|
||||
rmsjValueID = v.ID
|
||||
}
|
||||
}
|
||||
@@ -603,6 +603,21 @@ func buildCreateWareParam(storeSku *dao.StoreSkuSyncInfo) (createSkuParamWare *j
|
||||
}
|
||||
attrsProp = append(attrsProp, attrrmsj)
|
||||
}
|
||||
if storeSku.VendorVendorCatID == jdshopapi.JdsBeefCatID {
|
||||
var exValueID int64
|
||||
values2, _, err2 := api.JdShopAPI.FindValuesByAttrId(150390)
|
||||
err = err2
|
||||
for _, v := range values2 {
|
||||
if v.Name == "其他" {
|
||||
exValueID = v.ID
|
||||
}
|
||||
}
|
||||
attrex := &jdshopapi.CreateSkuParamAttrs{
|
||||
AttrID: utils.Int2Str(150390),
|
||||
AttrValues: []string{utils.Int64ToStr(exValueID)},
|
||||
}
|
||||
attrsProp = append(attrsProp, attrex)
|
||||
}
|
||||
attrZctj := &jdshopapi.CreateSkuParamAttrs{
|
||||
AttrID: utils.Int2Str(attrIDs["贮存条件"]),
|
||||
AttrValues: []string{utils.Int64ToStr(zctjValueID)},
|
||||
|
||||
Reference in New Issue
Block a user