初步修改
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
|
||||
#include "Adminive_Config.h"
|
||||
#include <algorithm>
|
||||
#include <cctype>
|
||||
#include <string_view>
|
||||
@@ -110,7 +111,7 @@ const Archive_Layout_Rules& Upgrade_Zip_Layout_Rules() {
|
||||
static const Archive_Layout_Rules rules = [] {
|
||||
Archive_Layout_Rules value;
|
||||
value.directories = {
|
||||
{"", {"adsb_cfg.ini", "config.json", "ecap_server", "lib9002config.json"}, {"lib9002", "wwwroot"}, {}, {}},
|
||||
{"", {"adsb_cfg.ini", "ecap_server", "lib9002config.json"}, {"lib9002", "wwwroot"}, {}, {}},
|
||||
{"lib9002", {"lib9002.so", "testserver"}, {"env"}, {}, {}}};
|
||||
return value;
|
||||
}();
|
||||
@@ -160,6 +161,7 @@ void Global::init_web_server() {
|
||||
{drogon::Get});
|
||||
};
|
||||
init_tiles();
|
||||
ecap::adminive_config::register_adminive_config(this);
|
||||
drogon::app().registerHandlerViaRegex(
|
||||
"/",
|
||||
[return_file](const drogon::HttpRequestPtr& req, std::function<void(const drogon::HttpResponsePtr&)>&& callback) {
|
||||
@@ -380,7 +382,7 @@ void Global::init_web_server() {
|
||||
// ret.append({"解出位置的数量", db.have_pos_aircraft_num});
|
||||
JSON arr = JSON::object();
|
||||
for (auto& ds : g->mode_acs.data_source_config.map.list()) {
|
||||
if (!ds->enable)
|
||||
if (!ds->enabled())
|
||||
continue;
|
||||
arr.append({ds->key, ds->statistic_json()});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user