From 4feacbcdbfd1acd4ca50370ad1cd1e4e7719a192 Mon Sep 17 00:00:00 2001 From: tickstep studio team Date: Tue, 10 Feb 2026 15:33:49 +0800 Subject: [PATCH] fix login get ip error issue --- internal/functions/panlogin/login_helper.go | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/internal/functions/panlogin/login_helper.go b/internal/functions/panlogin/login_helper.go index 557d54c..a49528d 100644 --- a/internal/functions/panlogin/login_helper.go +++ b/internal/functions/panlogin/login_helper.go @@ -4,17 +4,17 @@ import ( "encoding/hex" "encoding/json" "fmt" - "github.com/tickstep/aliyunpan/internal/global" - "github.com/tickstep/aliyunpan/internal/utils" - "github.com/tickstep/library-go/crypto" - "github.com/tickstep/library-go/getip" - "github.com/tickstep/library-go/logger" - "github.com/tickstep/library-go/requester" "net/url" "regexp" "runtime" "strings" "time" + + "github.com/tickstep/aliyunpan/internal/global" + "github.com/tickstep/aliyunpan/internal/utils" + "github.com/tickstep/library-go/crypto" + "github.com/tickstep/library-go/logger" + "github.com/tickstep/library-go/requester" ) type LoginHelper struct { @@ -87,7 +87,7 @@ func (h *LoginHelper) GetQRCodeLoginUrl(keyStr string) (*QRCodeUrlResult, error) keyStr = utils.GetUniqueKeyStr() } fullUrl := strings.Builder{} - ipAddr, err := getip.IPInfoFromTechainBaidu() + ipAddr, err := utils.GetPublicIP() if err != nil { ipAddr = "127.0.0.1" }