diff --git a/package.json b/package.json index a95a68f..132d116 100644 --- a/package.json +++ b/package.json @@ -290,7 +290,7 @@ "ConfigCenter": { "name": "配置中心", "description": "快速调整部分系统设定。", - "version": "1.3", + "version": "1.4", "icon": "setting.png", "author": "jxxghp", "level": 1 diff --git a/plugins/configcenter/__init__.py b/plugins/configcenter/__init__.py index 9fc8aea..6a3b507 100644 --- a/plugins/configcenter/__init__.py +++ b/plugins/configcenter/__init__.py @@ -17,7 +17,7 @@ class ConfigCenter(_PluginBase): # 插件图标 plugin_icon = "setting.png" # 插件版本 - plugin_version = "1.3" + plugin_version = "1.4" # 插件作者 plugin_author = "jxxghp" # 作者主页 @@ -114,7 +114,7 @@ class ConfigCenter(_PluginBase): # 读写app.env env_path = settings.CONFIG_PATH / "app.env" for key, value in conf.items(): - if not value or not key: + if not key: continue set_key(env_path, key, str(value)) logger.info("app.env文件写入完成")