mirror of
https://github.com/HugoAura/Seewo-HugoAura.git
synced 2026-06-20 23:14:28 +08:00
[🛠️ Fix] Change the logic of determining isEncConfig
1. [/] 修正了识别配置文件加密状态时的逻辑错误
This commit is contained in:
@@ -78,10 +78,10 @@ class ConfigManager {
|
||||
this.isConfigReadFailed = false;
|
||||
this.side = "unknown";
|
||||
|
||||
if (fs.existsSync(this.configPath)) {
|
||||
this.useEncConfig = false;
|
||||
} else {
|
||||
if (fs.existsSync(this.encConfigPath)) {
|
||||
this.useEncConfig = true;
|
||||
} else {
|
||||
this.useEncConfig = false;
|
||||
}
|
||||
|
||||
if (global.__HUGO_AURA_EVENT_BUS__) {
|
||||
|
||||
Reference in New Issue
Block a user