diff --git a/business/partner/purchase/tao_vegetable/act.go b/business/partner/purchase/tao_vegetable/act.go index e0a7acbd3..4b054ca30 100644 --- a/business/partner/purchase/tao_vegetable/act.go +++ b/business/partner/purchase/tao_vegetable/act.go @@ -25,7 +25,7 @@ func actType2Txd(actType int) *int64 { actType = tao_vegetable.DiscountTypeDeductMoney } else if actType == model.ActSkuSecKill { actType = tao_vegetable.DiscountTypeOnePrice - } else { + } else if actType == model.ActSkuDiscount { actType = tao_vegetable.DiscountTypeDiscounts } return utils.Int64ToPointer(int64(actType)) @@ -103,6 +103,7 @@ func storeSku2ActData(act *model.Act2, actStoreSku []*model.ActStoreSku2, handle } sType := *actType2Txd(v.Type) + globals.SugarLogger.Debugf("sType=%d", sType) switch sType { case tao_vegetable.DiscountTypeDeductMoney: decreaseMoney = v.VendorPrice - v.ActualActPrice