|
|
@@ -411,6 +411,53 @@ namespace Chromium {
|
|
|
}
|
|
|
return std::make_pair(false, "error generateJsonStr");
|
|
|
}
|
|
|
+ /*
|
|
|
+ {
|
|
|
+ "format_version": "1.1",
|
|
|
+ "target_page": "",
|
|
|
+ "headers": [
|
|
|
+ {
|
|
|
+ "url_contains": "",
|
|
|
+ "action": "add",
|
|
|
+ "header_name": "zzzz_terminalno",
|
|
|
+ "header_value": "7555980178",
|
|
|
+ "comment": "test",
|
|
|
+ "apply_on": "req",
|
|
|
+ "status": "on"
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ "debug_mode": True,
|
|
|
+ "use_url_contains": False
|
|
|
+ }
|
|
|
+
|
|
|
+ */
|
|
|
+
|
|
|
+ std::pair<int, std::string> EntitySessionManager::Get_getconfig_ack(std::string terminalno)
|
|
|
+ {
|
|
|
+ Json::Value root;
|
|
|
+ root["format_version"] = "1.1";
|
|
|
+ root["target_page"] = "";
|
|
|
+
|
|
|
+ Json::Value headers;
|
|
|
+ Json::Value header;
|
|
|
+ header["url_contains"] = "";
|
|
|
+ header["action"] = "add";
|
|
|
+ header["header_name"] = "VTM_terminalno";
|
|
|
+ header["header_value"] = terminalno;
|
|
|
+ header["comment"] = "test";
|
|
|
+ header["apply_on"] = "req";
|
|
|
+ header["status"] = "on";
|
|
|
+ headers.append(header);
|
|
|
+
|
|
|
+ root["headers"] = headers;
|
|
|
+ root["debug_mode"] = true;
|
|
|
+ root["use_url_contains"] = false;
|
|
|
+
|
|
|
+ Json::StyledWriter writer;
|
|
|
+ std::string output = writer.write(root);
|
|
|
+
|
|
|
+ return std::make_pair(true, output);
|
|
|
+ }
|
|
|
|
|
|
std::string EntitySessionManager::GetStartSessionAck(CMessage* msg, std::string entityname) {
|
|
|
auto s = GetSessionIDByEntityName(entityname);
|