From e2205eb78b630114a648c2f426c17810df26d3ec Mon Sep 17 00:00:00 2001 From: SengokuCola <1026294844@qq.com> Date: Fri, 4 Apr 2025 19:09:55 +0800 Subject: [PATCH] Update config.py --- src/plugins/config/config.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/plugins/config/config.py b/src/plugins/config/config.py index 2422b0d1f..c1bb35dbc 100644 --- a/src/plugins/config/config.py +++ b/src/plugins/config/config.py @@ -27,7 +27,10 @@ logger = get_module_logger("config", config=config_config) #考虑到,实际上配置文件中的mai_version是不会自动更新的,所以采用硬编码 mai_version_main = "0.6.0" mai_version_fix = "" -mai_version = f"{mai_version_main}-{mai_version_fix}" +if mai_version_fix: + mai_version = f"{mai_version_main}-{mai_version_fix}" +else: + mai_version = mai_version_main def update_config(): # 获取根目录路径