From 480663e2adb3608bb5e6af7a43fdb4ffa87b8409 Mon Sep 17 00:00:00 2001 From: midoks Date: Sat, 11 Mar 2023 15:41:15 +0800 Subject: [PATCH] Update tools.py --- tools.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tools.py b/tools.py index cdad39623..680b2b812 100755 --- a/tools.py +++ b/tools.py @@ -61,6 +61,7 @@ def mwcli(mw_input=0): print("(100) 开启PHP52显示") print("(101) 关闭PHP52显示") print("(200) 切换Linux系统软件源") + print("(201) 简单速度测试") print("(0) 取消") print(raw_tip) try: @@ -70,7 +71,7 @@ def mwcli(mw_input=0): except: mw_input = 0 - nums = [1, 2, 3, 4, 5, 10, 11, 12, 13, 20, 21, 100, 101, 200] + nums = [1, 2, 3, 4, 5, 10, 11, 12, 13, 20, 21, 100, 101, 200, 201] if not mw_input in nums: print(raw_tip) print("已取消!") @@ -140,6 +141,8 @@ def mwcli(mw_input=0): print("|-执行PHP52隐藏成功!") elif mw_input == 200: os.system(INIT_CMD + " mirror") + elif mw_input == 201: + os.system('curl -Lso- bench.sh | bash') def set_panel_pwd(password, ncli=False):