Skip to content

Commit

Permalink
fix: 修复检查更新提示问题
Browse files Browse the repository at this point in the history
  • Loading branch information
shing-yu committed Nov 21, 2023
1 parent b4ad86d commit 484892e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/function.py
Original file line number Diff line number Diff line change
Expand Up @@ -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键继续...')
Expand Down

0 comments on commit 484892e

Please sign in to comment.