@@ -19,7 +19,7 @@ class Plugin: | |||
# 全局配置不存在 或者 未开启全局配置开关,则获取插件目录下的配置 | |||
plugin_config_path = os.path.join(self.path, "config.json") | |||
if os.path.exists(plugin_config_path): | |||
with open(plugin_config_path, "r") as f: | |||
with open(plugin_config_path, "r", encoding="utf-8") as f: | |||
plugin_conf = json.load(f) | |||
logger.debug(f"loading plugin config, plugin_name={self.name}, conf={plugin_conf}") | |||
return plugin_conf | |||