Add req_full_path to Event interface, implement activities API for event retrieval, and enhance sync script with short link details
This commit is contained in:
@@ -41,6 +41,7 @@ interface Event {
|
||||
link_slug?: string;
|
||||
link_tags?: string;
|
||||
ip_address?: string;
|
||||
req_full_path?: string;
|
||||
}
|
||||
|
||||
// 格式化日期函数
|
||||
@@ -100,7 +101,7 @@ const extractEventInfo = (event: Event) => {
|
||||
eventTime: event.created_at || event.event_time,
|
||||
linkName: event.link_label || linkAttrs?.name || eventAttrs?.link_name || event.link_slug || '-',
|
||||
originalUrl: event.link_original_url || eventAttrs?.origin_url || '-',
|
||||
fullUrl: eventAttrs?.full_url || '-',
|
||||
fullUrl: event.req_full_path || eventAttrs?.full_url || '-',
|
||||
eventType: event.event_type || '-',
|
||||
visitorId: event.visitor_id?.substring(0, 8) || '-',
|
||||
referrer: eventAttrs?.referrer || '-',
|
||||
|
||||
Reference in New Issue
Block a user