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:
2025-04-17 22:23:38 +08:00
parent 53e1611670
commit 2cb45781c7
3 changed files with 190 additions and 11 deletions

View File

@@ -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 || '-',