perf.添加一些日志,优化部分简单逻辑

This commit is contained in:
MistEO
2021-11-05 00:31:48 +08:00
parent 7f1eff2188
commit 09cb5b271a
12 changed files with 93 additions and 16 deletions

View File

@@ -17,10 +17,7 @@ bool asst::InfrastInfoTask::run()
const auto& image = ctrler.get_image();
InfrastFacilityImageAnalyzer analyzer(image);
std::vector<std::string> all_facilities;
for (auto&& [key, _value] : resource.infrast().get_facility_info()) {
all_facilities.emplace_back(key);
}
analyzer.set_to_be_analyzed({ "Mfg", "Trade", "Power" });
if (!analyzer.analyze()) {
return false;
}