配置生成逻辑优化

This commit is contained in:
2026-08-21 17:59:48 +08:00
parent 4909392c5e
commit ff487be64e
19 changed files with 536 additions and 1769 deletions
@@ -3,10 +3,10 @@
#include <string_view>
#include "../server/Global.h"
#include "Database.h"
std::shared_ptr<Data_Source> create_from_json(const JSON* that_json, bool not_exist_use_default_value) {
std::shared_ptr<Data_Source> create_from_json(const JSON* that_json) {
std::string type = that_json->get_string("type");
std::shared_ptr<Data_Source> ret = create_data_source_from_type(type);
ret->from_json(that_json, not_exist_use_default_value);
ret->from_json(that_json);
return ret;
}
std::shared_ptr<Data_Source> Data_Source::that() {