From 59bcd7bcdc29a19d71341a1889371bd9f8eda3fb Mon Sep 17 00:00:00 2001 From: ikun0014 Date: Sat, 12 Oct 2024 15:58:06 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E5=86=8D=E5=8A=A0=E7=82=B9=E6=96=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/main.py b/main.py index 1df60fb..9a2721f 100644 --- a/main.py +++ b/main.py @@ -26,14 +26,18 @@ def check_system_msg(): try: if os_type != 'Windows': log.error(f'❌ 不用Windows你想上天?{os_type}') + sys.quit() except Exception as e: log.error(f'❌ 获取系统类型失败:{stack_error(e)}') + sys.quit() os_version = sys.getwindowsversion().major try: if os_version < 10: log.error(f'❌ 低于Windows10就别用了买台新电脑吧!当前版本:Windows {os_version}') + sys.quit() except Exception as e: log.error(f'❌ 获取系统版本失败:{stack_error(e)}') + sys.quit() def prompt_app_id(): app_id = input(f"{Fore.CYAN}{Back.BLACK}{Style.BRIGHT}🤔 请输入游戏AppID:{Style.RESET_ALL}").strip()