- up
This commit is contained in:
@@ -217,7 +217,7 @@ func (c *PurchaseHandler) Map2Order(orderData map[string]interface{}) (order *mo
|
|||||||
VendorPrice: utils.MustInterface2Int64(product["skuStorePrice"]),
|
VendorPrice: utils.MustInterface2Int64(product["skuStorePrice"]),
|
||||||
SalePrice: utils.MustInterface2Int64(product["skuJdPrice"]),
|
SalePrice: utils.MustInterface2Int64(product["skuJdPrice"]),
|
||||||
}
|
}
|
||||||
if jdPromotionType := int(utils.MustInterface2Int64(product["promotionType"])); jdPromotionType != jdapi.PromotionTypeNormal {
|
if jdPromotionType := int(utils.MustInterface2Int64(product["promotionType"])); jdPromotionType != 0 && jdPromotionType != jdapi.PromotionTypeNormal {
|
||||||
sku.StoreSubName = utils.Int2Str(jdPromotionType)
|
sku.StoreSubName = utils.Int2Str(jdPromotionType)
|
||||||
}
|
}
|
||||||
if skuCostumeProperty, ok := product["skuCostumeProperty"]; ok {
|
if skuCostumeProperty, ok := product["skuCostumeProperty"]; ok {
|
||||||
|
|||||||
Reference in New Issue
Block a user