From 748a8ac40a93256fd836d66e870b7b0814b1cbfa Mon Sep 17 00:00:00 2001 From: richboo111 Date: Fri, 7 Jul 2023 16:43:31 +0800 Subject: [PATCH] 1 --- business/partner/purchase/tao_vegetable/act.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/business/partner/purchase/tao_vegetable/act.go b/business/partner/purchase/tao_vegetable/act.go index afee8e106..42866c9c5 100644 --- a/business/partner/purchase/tao_vegetable/act.go +++ b/business/partner/purchase/tao_vegetable/act.go @@ -2,6 +2,7 @@ package tao_vegetable import ( "fmt" + "math/rand" "time" "git.rosy.net.cn/baseapi/platformapi/tao_vegetable/sdk/ability2770/domain" @@ -45,10 +46,10 @@ func act2TxdActivity(act *model.Act2) (activity *domain.AlibabaRetailMarketingIt actName := act.GetRealActName() activity = &domain.AlibabaRetailMarketingItemdiscountActivityCreateItemDiscountActivityOperateRequest{ ActivityName: &actName, - CreatorId: &act.VendorActID, + CreatorId: utils.String2Pointer(utils.Int2Str(rand.Int())), CreatorName: &act.LastOperator, Description: &act.Advertising, - Terminals: &[]int32{tao_vegetable.TerminalsAPP, tao_vegetable.TerminalsPOS}, + Terminals: &[]int32{tao_vegetable.TerminalsAPP}, //StoreIds: &[]string{act.s}, DiscountType: actType2Txd(act.Type), StartTime: utils.Int64ToPointer(act.BeginAt.UnixNano() / int64(time.Millisecond)),