From 824b3c18506918dac694695e228ba7bd9906bf5c Mon Sep 17 00:00:00 2001 From: richboo111 Date: Fri, 7 Jul 2023 18:05:14 +0800 Subject: [PATCH] 1 --- business/partner/purchase/tao_vegetable/act.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/business/partner/purchase/tao_vegetable/act.go b/business/partner/purchase/tao_vegetable/act.go index 94ec9c0b6..3a3cfea4b 100644 --- a/business/partner/purchase/tao_vegetable/act.go +++ b/business/partner/purchase/tao_vegetable/act.go @@ -20,7 +20,7 @@ import ( "git.rosy.net.cn/jx-callback/globals" ) -func actType2Txd(actType int) *int64 { +func actType2Txd(actType int) int64 { if actType == model.ActSkuDirectDown { actType = tao_vegetable.DiscountTypeDeductMoney } else if actType == model.ActSkuSecKill { @@ -28,7 +28,7 @@ func actType2Txd(actType int) *int64 { } else if actType == model.ActSkuDiscount { actType = tao_vegetable.DiscountTypeDiscounts } - return utils.Int64ToPointer(int64(actType)) + return int64(actType) } func actOrderRules2Mtwm(actOrderRules []*model.ActOrderRule) (actDetails []*mtwmapi.FullDiscountActDetail) { @@ -51,7 +51,7 @@ func act2TxdActivity(act *model.Act2) (activity *domain.AlibabaRetailMarketingIt Description: &act.Advertising, Terminals: &[]int32{tao_vegetable.TerminalsAPP}, //StoreIds: &[]string{act.s}, - DiscountType: actType2Txd(act.Type), + DiscountType: utils.Int64ToPointer(actType2Txd(act.Type)), StartTime: utils.Int64ToPointer(act.BeginAt.UnixNano() / int64(time.Millisecond)), EndTime: utils.Int64ToPointer(act.EndAt.UnixNano() / int64(time.Millisecond)), } @@ -103,7 +103,7 @@ func storeSku2ActData(act *model.Act2, actStoreSku []*model.ActStoreSku2, handle OutActId: utils.String2Pointer(utils.Int2Str(v.ActID)), } - sType := *actType2Txd(v.Type) + sType := actType2Txd(v.Type) globals.SugarLogger.Debugf("sType=%d", sType) switch sType { case tao_vegetable.DiscountTypeDeductMoney: