From 1a6a077743a5f5186d111bb07cbbe6f941b454de Mon Sep 17 00:00:00 2001 From: win Date: Wed, 1 Apr 2026 12:48:37 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=B7=BB=E5=8A=A0=20OAuth=20setup=20tok?= =?UTF-8?q?en=20=E7=AB=AF=E7=82=B9=E7=9A=84=E4=BB=A3=E7=90=86=E8=B7=AF?= =?UTF-8?q?=E7=94=B1=E8=AF=8A=E6=96=AD=E6=97=A5=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/internal/handler/admin/account_handler.go | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/backend/internal/handler/admin/account_handler.go b/backend/internal/handler/admin/account_handler.go index ce5cffe4..f860e666 100644 --- a/backend/internal/handler/admin/account_handler.go +++ b/backend/internal/handler/admin/account_handler.go @@ -1453,6 +1453,12 @@ func (h *OAuthHandler) GenerateSetupTokenURL(c *gin.Context) { req = GenerateAuthURLRequest{} } + if req.ProxyID != nil { + slog.Info("generate_setup_token_url", "proxy_id", *req.ProxyID) + } else { + slog.Info("generate_setup_token_url", "proxy_id", nil) + } + result, err := h.oauthService.GenerateSetupTokenURL(c.Request.Context(), req.ProxyID) if err != nil { response.ErrorFrom(c, err) @@ -1500,6 +1506,12 @@ func (h *OAuthHandler) ExchangeSetupTokenCode(c *gin.Context) { return } + if req.ProxyID != nil { + slog.Info("exchange_setup_token_code", "session_id", req.SessionID, "proxy_id", *req.ProxyID) + } else { + slog.Info("exchange_setup_token_code", "session_id", req.SessionID, "proxy_id", nil) + } + tokenInfo, err := h.oauthService.ExchangeCode(c.Request.Context(), &service.ExchangeCodeInput{ SessionID: req.SessionID, Code: req.Code,