From a9b3883f40abfc233d763190daedf10b63ed8569 Mon Sep 17 00:00:00 2001 From: richboo111 Date: Fri, 7 Jul 2023 17:50:01 +0800 Subject: [PATCH] 1 --- business/partner/purchase/tao_vegetable/act.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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