From 5bf49499996f2854aaa424a94a34d2303e2a8ffa Mon Sep 17 00:00:00 2001 From: fish Date: Sat, 4 Jul 2026 11:00:31 +0800 Subject: [PATCH] =?UTF-8?q?config:=20=E9=BB=98=E8=AE=A4=20TICKFLOW=5FAPI?= =?UTF-8?q?=5FKEY=20=E5=86=99=E6=AD=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/internal/config/config.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/backend/internal/config/config.go b/backend/internal/config/config.go index f52a7e2..cb12e97 100644 --- a/backend/internal/config/config.go +++ b/backend/internal/config/config.go @@ -57,6 +57,11 @@ func Load() (*Config, error) { } } + tickFlowAPIKey := os.Getenv("TICKFLOW_API_KEY") + if tickFlowAPIKey == "" { + tickFlowAPIKey = "tk_94a20304993f45b5b0e376b9767597cc" + } + tickFlowBaseURL := os.Getenv("TICKFLOW_BASE_URL") if tickFlowBaseURL == "" { tickFlowBaseURL = "https://api.tickflow.org" @@ -75,7 +80,7 @@ func Load() (*Config, error) { JWTExpirationHours: expHours, Port: port, AllowedOrigins: allowedOrigins, - TickFlowAPIKey: os.Getenv("TICKFLOW_API_KEY"), + TickFlowAPIKey: tickFlowAPIKey, TickFlowBaseURL: tickFlowBaseURL, DataSyncEnabled: dataSyncEnabled, DataSyncTime: dataSyncTime,