- 美团与饿百的订单活动商品处理,饿百活动商品没有拆开,摊销处理

This commit is contained in:
gazebo
2019-06-12 09:32:34 +08:00
parent 7f939333df
commit 3fb6bba882
3 changed files with 10 additions and 5 deletions

View File

@@ -186,7 +186,7 @@ func (p *PurchaseHandler) Map2Order(orderData map[string]interface{}) (order *mo
}
if ignoreSkuMap[sku.SkuID] == 0 && sku.Count == 1 {
for _, v := range extraList {
if skuActTypeMap[v.Type] == 1 && strings.Index(v.Remark, skuName) >= 0 {
if /*skuActTypeMap[v.Type] == 1 && */ strings.Index(v.Remark, skuName) >= 0 {
ignoreSkuMap[sku.SkuID] = 1
sku.SalePrice -= jxutils.StandardPrice2Int(v.ReduceFee)
}