This commit is contained in:
richboo111
2023-07-07 17:50:01 +08:00
parent 792f16a85e
commit a9b3883f40

View File

@@ -25,7 +25,7 @@ func actType2Txd(actType int) *int64 {
actType = tao_vegetable.DiscountTypeDeductMoney actType = tao_vegetable.DiscountTypeDeductMoney
} else if actType == model.ActSkuSecKill { } else if actType == model.ActSkuSecKill {
actType = tao_vegetable.DiscountTypeOnePrice actType = tao_vegetable.DiscountTypeOnePrice
} else { } else if actType == model.ActSkuDiscount {
actType = tao_vegetable.DiscountTypeDiscounts actType = tao_vegetable.DiscountTypeDiscounts
} }
return utils.Int64ToPointer(int64(actType)) return utils.Int64ToPointer(int64(actType))
@@ -103,6 +103,7 @@ func storeSku2ActData(act *model.Act2, actStoreSku []*model.ActStoreSku2, handle
} }
sType := *actType2Txd(v.Type) sType := *actType2Txd(v.Type)
globals.SugarLogger.Debugf("sType=%d", sType)
switch sType { switch sType {
case tao_vegetable.DiscountTypeDeductMoney: case tao_vegetable.DiscountTypeDeductMoney:
decreaseMoney = v.VendorPrice - v.ActualActPrice decreaseMoney = v.VendorPrice - v.ActualActPrice