From fd44c079b3c08d630fb6617b84fae9cbba868930 Mon Sep 17 00:00:00 2001 From: spiritlhl <103393591+spiritLHLS@users.noreply.github.com> Date: Sun, 2 Nov 2025 13:24:53 +0000 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9A=E5=88=A0=E9=99=A4=E6=97=A0?= =?UTF-8?q?=E6=95=88=E5=A4=B4=E6=96=87=E5=AD=97=E8=BE=93=E5=87=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- goecs.go | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/goecs.go b/goecs.go index 1505d152..a2c486f9 100644 --- a/goecs.go +++ b/goecs.go @@ -802,14 +802,12 @@ func runNetworkTests(wg3 *sync.WaitGroup, ptInfo *string, output, tempOutput str wg3.Wait() utils.PrintCenteredTitle("PING值检测", width) fmt.Println(*ptInfo) - } - if tgdcTestStatus { - utils.PrintCenteredTitle("Telegram数据中心检测", width) - fmt.Println(pt.TelegramDCTest()) - } - if webTestStatus { - utils.PrintCenteredTitle("主流网站连通性检测", width) - fmt.Println(pt.WebsiteTest()) + if tgdcTestStatus { + fmt.Println(pt.TelegramDCTest()) + } + if webTestStatus { + fmt.Println(pt.WebsiteTest()) + } } }, tempOutput, output) } @@ -840,12 +838,11 @@ func runEnglishNetworkTests(output, tempOutput string, outputMutex *sync.Mutex) outputMutex.Lock() defer outputMutex.Unlock() return utils.PrintAndCapture(func() { + utils.PrintCenteredTitle("PING-Test", width) if tgdcTestStatus { - utils.PrintCenteredTitle("Telegram-Data-Center-Test", width) fmt.Println(pt.TelegramDCTest()) } if webTestStatus { - utils.PrintCenteredTitle("Popular-Websites-Test", width) fmt.Println(pt.WebsiteTest()) } }, tempOutput, output)