NEW: Christmas Cabin

Change-Id: I5b8585df171dc3be85e099b1992cef1bbd3d799c
This commit is contained in:
zorro.zhang 2022-12-12 19:49:59 +08:00 committed by Lane.Wei
parent e9045c2f4b
commit 550be104ee
11 changed files with 1662 additions and 0 deletions

View file

@ -3504,7 +3504,17 @@ std::string GUI_App::handle_web_request(std::string cmd)
}
}
}
else if (command_str.compare("homepage_open_ccabin") == 0) {
if (root.get_child_optional("data") != boost::none) {
pt::ptree data_node = root.get_child("data");
boost::optional<std::string> path = data_node.get_optional<std::string>("file");
if (path.has_value()) {
std::string Fullpath = resources_dir() + "/web/homepage/model/" + path.value();
this->request_open_project(Fullpath);
}
}
}
}
}
catch (...) {