From 5b686abdc83219c6ca39ea2fffd4038aff5f8717 Mon Sep 17 00:00:00 2001 From: spiritlhl <103393591+spiritLHLS@users.noreply.github.com> Date: Wed, 6 Aug 2025 09:06:48 +0000 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=A7=84=E8=8C=83=E8=BE=93=E5=87=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- goecs.go | 2 +- unlocktest/media_test.go | 2 +- utils/utils_test.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/goecs.go b/goecs.go index 1cf6e6f8..1705ff92 100644 --- a/goecs.go +++ b/goecs.go @@ -449,7 +449,7 @@ func handleLanguageSpecificSettings() { } } -func handleSignalInterrupt(sig chan os.Signal, startTime *time.Time, output *string, tempOutput string, uploadDone chan bool, outputMutex *sync.Mutex) { +func handleSignalInterrupt(sig chan os.Signal, startTime *time.Time, output *string, _ string, uploadDone chan bool, outputMutex *sync.Mutex) { select { case <-sig: if !finish { diff --git a/unlocktest/media_test.go b/unlocktest/media_test.go index 1ad06db0..4aee5a9f 100644 --- a/unlocktest/media_test.go +++ b/unlocktest/media_test.go @@ -6,5 +6,5 @@ import ( ) func Test(t *testing.T) { - fmt.Print("%s", MediaTest("zh")) + fmt.Printf("%s", MediaTest("zh")) } diff --git a/utils/utils_test.go b/utils/utils_test.go index 58fbe18e..3b8cedc3 100644 --- a/utils/utils_test.go +++ b/utils/utils_test.go @@ -20,7 +20,7 @@ func TestBasicsAndSecurityCheck(t *testing.T) { timeout := 3 * time.Second result := CheckPublicAccess(timeout) if result.Connected { - fmt.Print("✅ 本机有公网连接,类型: %s\n", result.StackType) + fmt.Printf("✅ 本机有公网连接,类型: %s\n", result.StackType) } else { fmt.Println("❌ 本机未检测到公网连接") }