- 将OrderSku中没有用的StoreSubName暂时当成VendorActType来使用

- 美团外卖订单使用sku_benefit_detail来更准确的判断单品活动
This commit is contained in:
gazebo
2019-06-13 21:49:12 +08:00
parent f4691530c5
commit 3927af734e
3 changed files with 28 additions and 16 deletions

View File

@@ -163,6 +163,7 @@ func (c *PurchaseHandler) Map2Order(orderData map[string]interface{}) (order *mo
VendorPrice: utils.MustInterface2Int64(product["skuStorePrice"]),
SalePrice: utils.MustInterface2Int64(product["skuJdPrice"]),
PromotionType: int(utils.MustInterface2Int64(product["promotionType"])),
StoreSubName: utils.Int64ToStr(utils.MustInterface2Int64(product["promotionType"])),
}
if skuCostumeProperty, ok := product["skuCostumeProperty"]; ok {
sku.SkuName += skuCostumeProperty.(string)