From 99932bdce2ef68b3856bb2b003d7d1e03ed21334 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8F=AE=E5=8F=AE=E5=BD=93?= <604054726@qq.com> Date: Wed, 7 Feb 2024 20:55:55 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E9=83=A8=E5=88=86=E8=AE=BE=E7=BD=AE?= =?UTF-8?q?=E6=97=A0=E6=B3=95=E5=86=99=E5=85=A5app.env=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 2 +- plugins/configcenter/__init__.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index bb22788..0fcfed7 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文件写入完成")