From 4c4887f487aacc3737103a836817002b2e81e65f Mon Sep 17 00:00:00 2001 From: spiritsoul Date: Mon, 12 Jan 2026 23:31:27 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9A=E4=BB=A5=E6=96=87=E6=9C=AC?= =?UTF-8?q?=E7=BB=93=E6=9E=84=E5=8C=B9=E9=85=8D=E9=81=BF=E5=85=8D=E6=AD=A3?= =?UTF-8?q?=E5=88=99=E5=8C=B9=E9=85=8D=E8=B6=8A=E7=95=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .back/create_public_branch.py | 10 ++-------- internal/tests/speed.go | 1 + 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/.back/create_public_branch.py b/.back/create_public_branch.py index c66de814..cf2678ab 100755 --- a/.back/create_public_branch.py +++ b/.back/create_public_branch.py @@ -44,16 +44,10 @@ def modify_speed_go(filepath): ) content = re.sub( - r''' - \n\s*// 对于三网测速(cmcc、cu、ct),优先使用 privatespeedtest 进行私有测速 - \s*\n - \s*opLower\s*:=\s*strings\.ToLower\(operator\) - [\s\S]*? - \n\s*}\s* - ''', + r'^[ \t]*// 对于三网测速(cmcc、cu、ct),优先使用 privatespeedtest 进行私有测速[\s\S]*?\n\s*\n', '\n', content, - flags=re.MULTILINE | re.VERBOSE + flags=re.MULTILINE ) write_file(filepath, content) diff --git a/internal/tests/speed.go b/internal/tests/speed.go index e9bf59b1..f0570cbf 100644 --- a/internal/tests/speed.go +++ b/internal/tests/speed.go @@ -189,6 +189,7 @@ func CustomSP(platform, operator string, num int, language string) { return } } + var url, parseType string if strings.ToLower(platform) == "cn" { if strings.ToLower(operator) == "cmcc" {