fix: 规范输出

This commit is contained in:
spiritlhl
2025-08-06 09:06:48 +00:00
parent f99a37edbe
commit 5b686abdc8
3 changed files with 3 additions and 3 deletions

View File

@@ -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 { select {
case <-sig: case <-sig:
if !finish { if !finish {

View File

@@ -6,5 +6,5 @@ import (
) )
func Test(t *testing.T) { func Test(t *testing.T) {
fmt.Print("%s", MediaTest("zh")) fmt.Printf("%s", MediaTest("zh"))
} }

View File

@@ -20,7 +20,7 @@ func TestBasicsAndSecurityCheck(t *testing.T) {
timeout := 3 * time.Second timeout := 3 * time.Second
result := CheckPublicAccess(timeout) result := CheckPublicAccess(timeout)
if result.Connected { if result.Connected {
fmt.Print("✅ 本机有公网连接,类型: %s\n", result.StackType) fmt.Printf("✅ 本机有公网连接,类型: %s\n", result.StackType)
} else { } else {
fmt.Println("❌ 本机未检测到公网连接") fmt.Println("❌ 本机未检测到公网连接")
} }