From 892b6408d33345a9317f7f4d2883931f07f1dafe Mon Sep 17 00:00:00 2001 From: hahwu <31872165+hahwu@users.noreply.github.com> Date: Wed, 21 Jan 2026 17:25:55 +0800 Subject: [PATCH] =?UTF-8?q?=E6=97=A5=E5=BF=97=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/server/thinkingdata/thinkingdata.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/server/thinkingdata/thinkingdata.go b/src/server/thinkingdata/thinkingdata.go index f6b5ae9d..799bcda2 100644 --- a/src/server/thinkingdata/thinkingdata.go +++ b/src/server/thinkingdata/thinkingdata.go @@ -3,6 +3,7 @@ package thinkingdata import ( "errors" "sync" + "time" ) const ( @@ -27,6 +28,7 @@ type Data struct { DistinctId string `json:"#distinct_id,omitempty"` Type string `json:"#type"` Time string `json:"#time"` + Timestamp int64 `json:"#timestamp,omitempty"` EventName string `json:"#event_name,omitempty"` EventId string `json:"#event_id,omitempty"` FirstCheckId string `json:"#first_check_id,omitempty"` @@ -279,6 +281,7 @@ func (ta *TDAnalytics) add(accountId, distinctId, dataType, eventName, eventId s DistinctId: distinctId, Type: dataType, Time: eventTime, + Timestamp: time.Now().Unix(), EventName: eventName, EventId: eventId, FirstCheckId: firstCheckId,