From 484892ece8b41878156f8125a95fdc026d8fc0b4 Mon Sep 17 00:00:00 2001 From: shingyu Date: Tue, 21 Nov 2023 14:55:55 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E6=A3=80=E6=9F=A5?= =?UTF-8?q?=E6=9B=B4=E6=96=B0=E6=8F=90=E7=A4=BA=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/function.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/function.py b/src/function.py index cbb68e1..293e234 100644 --- a/src/function.py +++ b/src/function.py @@ -338,7 +338,7 @@ def check_update(now_version): print("正在检查更新...") print(f"当前版本: {now_version}") - if 'dev' or 'alpha' or 'beta' in now_version: + if 'dev' in now_version or 'alpha' in now_version or 'beta' in now_version: print(Fore.YELLOW + Style.BRIGHT + '测试版本,检查更新已关闭!') print(Fore.YELLOW + Style.BRIGHT + '注意!您正在使用测试/预览版本!\n该版本可能极不稳定,不建议在生产环境中使用!') input('按Enter键继续...')