diff --git a/server/pay/internal/logic/stripewebhooklogic.go b/server/pay/internal/logic/stripewebhooklogic.go index 9fab8cb9..de5a9ceb 100644 --- a/server/pay/internal/logic/stripewebhooklogic.go +++ b/server/pay/internal/logic/stripewebhooklogic.go @@ -73,10 +73,11 @@ func (l *StripeWebhookLogic) StripeWebhook(req *types.StripeWebhookReq, userinfo var payMethod = int64(constants.PAYMETHOD_STRIPE) var nowTime = time.Now().UTC() var eventData = []byte(event.Data.Raw) + eventType := string(event.Type) l.HandlePayEventCreate(&gmodel.FsOrderTradeEvent{ PayMethod: &payMethod, EventId: &event.ID, - EventType: &event.Type, + EventType: &eventType, EventData: &eventData, Ctime: &nowTime, })