添加Openssl,Gmssl加密库

This commit is contained in:
lixiaoyuan
2025-09-22 20:01:41 +08:00
parent ee98556eec
commit 6878952da8
240 changed files with 48082 additions and 2724 deletions

View File

@@ -24,6 +24,7 @@ bool Config::init(std::string filename)
JSON::read(jsonroot, "weburl", option.webSrvUrl);
JSON::read(jsonroot, "launchdate", option.lunchDate);
JSON::read(jsonroot, "exportpath", option.exportpath);
JSON::read(jsonroot, "windowEnabled", option.windowEnabled);
if (jsonroot.contains("database"))
{
@@ -110,6 +111,14 @@ bool Config::init(std::string filename)
JSON::read(jsonItem, "enabled", info.enabled);
}
}
if (jsonroot.contains("statistics"))
{
njson& json = jsonroot["statistics"];
JSON::read(json, "enabled", option.stat.enabled);
JSON::read(json, "interval", option.stat.interval);
if (option.stat.interval <= 0) { option.stat.interval = 60; }
}
return true;
}