| | |
| | |
|
| | | Json::Value iDJsonValue = requestJsonValue[VssUpperSvrTbl_ID];
|
| | | if (iDJsonValue.type() != Json::ValueType::nullValue) {
|
| | | vssUpperSvrTblBuilder.addID(iDJsonValue.asInt());
|
| | | vssUpperSvrTblBuilder.addID(std::stoi((iDJsonValue.asString())));
|
| | | }
|
| | |
|
| | | Json::Value nameJsonValue = requestJsonValue[VssUpperSvrTbl_Name];
|
| | | if (nameJsonValue.type() != Json::ValueType::nullValue) {
|
| | | vssUpperSvrTblBuilder.addName(nameJsonValue.asString());
|
| | | vssUpperSvrTblBuilder.addName((nameJsonValue.asString()));
|
| | | }
|
| | |
|
| | | Json::Value publicIDJsonValue = requestJsonValue[VssUpperSvrTbl_PublicID];
|
| | | if (publicIDJsonValue.type() != Json::ValueType::nullValue) {
|
| | | vssUpperSvrTblBuilder.addPublicID(publicIDJsonValue.asString());
|
| | | vssUpperSvrTblBuilder.addPublicID((publicIDJsonValue.asString()));
|
| | | }
|
| | |
|
| | | Json::Value authUsernameJsonValue = requestJsonValue[VssUpperSvrTbl_AuthUsername];
|
| | | if (authUsernameJsonValue.type() != Json::ValueType::nullValue) {
|
| | | vssUpperSvrTblBuilder.addAuthUsername(authUsernameJsonValue.asString());
|
| | | vssUpperSvrTblBuilder.addAuthUsername((authUsernameJsonValue.asString()));
|
| | | }
|
| | |
|
| | | Json::Value authPasswdJsonValue = requestJsonValue[VssUpperSvrTbl_AuthPasswd];
|
| | | if (authPasswdJsonValue.type() != Json::ValueType::nullValue) {
|
| | | vssUpperSvrTblBuilder.addAuthPasswd(authPasswdJsonValue.asString());
|
| | | vssUpperSvrTblBuilder.addAuthPasswd((authPasswdJsonValue.asString()));
|
| | | }
|
| | |
|
| | | Json::Value domainJsonValue = requestJsonValue[VssUpperSvrTbl_Domain];
|
| | | if (domainJsonValue.type() != Json::ValueType::nullValue) {
|
| | | vssUpperSvrTblBuilder.addDomain(domainJsonValue.asString());
|
| | | vssUpperSvrTblBuilder.addDomain((domainJsonValue.asString()));
|
| | | }
|
| | |
|
| | | Json::Value iPJsonValue = requestJsonValue[VssUpperSvrTbl_IP];
|
| | | if (iPJsonValue.type() != Json::ValueType::nullValue) {
|
| | | vssUpperSvrTblBuilder.addIP(iPJsonValue.asString());
|
| | | vssUpperSvrTblBuilder.addIP((iPJsonValue.asString()));
|
| | | }
|
| | |
|
| | | Json::Value portJsonValue = requestJsonValue[VssUpperSvrTbl_Port];
|
| | | if (portJsonValue.type() != Json::ValueType::nullValue) {
|
| | | vssUpperSvrTblBuilder.addPort(portJsonValue.asInt());
|
| | | vssUpperSvrTblBuilder.addPort(std::stoi((portJsonValue.asString())));
|
| | | }
|
| | |
|
| | | Json::Value registerTimeJsonValue = requestJsonValue[VssUpperSvrTbl_RegisterTime];
|
| | | if (registerTimeJsonValue.type() != Json::ValueType::nullValue) {
|
| | | vssUpperSvrTblBuilder.addRegisterTime(registerTimeJsonValue.asInt());
|
| | | vssUpperSvrTblBuilder.addRegisterTime(std::stoi((registerTimeJsonValue.asString())));
|
| | | }
|
| | |
|
| | | Json::Value keepAliveTimeJsonValue = requestJsonValue[VssUpperSvrTbl_KeepAliveTime];
|
| | | if (keepAliveTimeJsonValue.type() != Json::ValueType::nullValue) {
|
| | | vssUpperSvrTblBuilder.addKeepAliveTime(keepAliveTimeJsonValue.asInt());
|
| | | vssUpperSvrTblBuilder.addKeepAliveTime(std::stoi((keepAliveTimeJsonValue.asString())));
|
| | | }
|
| | |
|
| | | Json::Value aliveJsonValue = requestJsonValue[VssUpperSvrTbl_Alive];
|
| | | if (aliveJsonValue.type() != Json::ValueType::nullValue) {
|
| | | vssUpperSvrTblBuilder.addAlive(aliveJsonValue.asInt());
|
| | | vssUpperSvrTblBuilder.addAlive(std::stoi((aliveJsonValue.asString())));
|
| | | }
|
| | |
|
| | | Json::Value isSyncTimeJsonValue = requestJsonValue[VssUpperSvrTbl_IsSyncTime];
|
| | | if (isSyncTimeJsonValue.type() != Json::ValueType::nullValue) {
|
| | | vssUpperSvrTblBuilder.addIsSyncTime(isSyncTimeJsonValue.asInt());
|
| | | vssUpperSvrTblBuilder.addIsSyncTime(std::stoi((isSyncTimeJsonValue.asString())));
|
| | | }
|
| | |
|
| | | Json::Value pushProtocolJsonValue = requestJsonValue[VssUpperSvrTbl_PushProtocol];
|
| | | if (pushProtocolJsonValue.type() != Json::ValueType::nullValue) {
|
| | | vssUpperSvrTblBuilder.addPushProtocol(pushProtocolJsonValue.asInt());
|
| | | vssUpperSvrTblBuilder.addPushProtocol(std::stoi((pushProtocolJsonValue.asString())));
|
| | | }
|
| | |
|
| | | Json::Value platformInfoJsonValue = requestJsonValue[VssUpperSvrTbl_PlatformInfo];
|
| | | if (platformInfoJsonValue.type() != Json::ValueType::nullValue) {
|
| | | vssUpperSvrTblBuilder.addPlatformInfo(platformInfoJsonValue.asInt());
|
| | | vssUpperSvrTblBuilder.addPlatformInfo(std::stoi((platformInfoJsonValue.asString())));
|
| | | }
|
| | |
|
| | | Json::Value isEnableJsonValue = requestJsonValue[VssUpperSvrTbl_IsEnable];
|
| | | if (isEnableJsonValue.type() != Json::ValueType::nullValue) {
|
| | | vssUpperSvrTblBuilder.addIsEnable(isEnableJsonValue.asInt());
|
| | | vssUpperSvrTblBuilder.addIsEnable(std::stoi((isEnableJsonValue.asString())));
|
| | | }
|
| | |
|
| | | Json::Value updateTimeJsonValue = requestJsonValue[VssUpperSvrTbl_UpdateTime];
|
| | | if (updateTimeJsonValue.type() != Json::ValueType::nullValue) {
|
| | | vssUpperSvrTblBuilder.addUpdateTime(updateTimeJsonValue.asString());
|
| | | vssUpperSvrTblBuilder.addUpdateTime((updateTimeJsonValue.asString()));
|
| | | }
|
| | | auto keyValuesToAdd = vssUpperSvrTblBuilder.buildVssUpperSvrTblMap();
|
| | | if (keyValuesToAdd.size() > 0) {
|
| | |
| | |
|
| | | Json::Value iDJsonValue = requestJsonValue[VssUpperSvrTbl_ID];
|
| | | if (iDJsonValue.type() != Json::ValueType::nullValue) {
|
| | | vssUpperSvrTblBuilder.addID(iDJsonValue.asInt());
|
| | | vssUpperSvrTblBuilder.addID(std::stoi((iDJsonValue.asString())));
|
| | | }
|
| | |
|
| | | Json::Value nameJsonValue = requestJsonValue[VssUpperSvrTbl_Name];
|
| | | if (nameJsonValue.type() != Json::ValueType::nullValue) {
|
| | | vssUpperSvrTblBuilder.addName(nameJsonValue.asString());
|
| | | vssUpperSvrTblBuilder.addName((nameJsonValue.asString()));
|
| | | }
|
| | |
|
| | | Json::Value publicIDJsonValue = requestJsonValue[VssUpperSvrTbl_PublicID];
|
| | | if (publicIDJsonValue.type() != Json::ValueType::nullValue) {
|
| | | vssUpperSvrTblBuilder.addPublicID(publicIDJsonValue.asString());
|
| | | vssUpperSvrTblBuilder.addPublicID((publicIDJsonValue.asString()));
|
| | | }
|
| | |
|
| | | Json::Value authUsernameJsonValue = requestJsonValue[VssUpperSvrTbl_AuthUsername];
|
| | | if (authUsernameJsonValue.type() != Json::ValueType::nullValue) {
|
| | | vssUpperSvrTblBuilder.addAuthUsername(authUsernameJsonValue.asString());
|
| | | vssUpperSvrTblBuilder.addAuthUsername((authUsernameJsonValue.asString()));
|
| | | }
|
| | |
|
| | | Json::Value authPasswdJsonValue = requestJsonValue[VssUpperSvrTbl_AuthPasswd];
|
| | | if (authPasswdJsonValue.type() != Json::ValueType::nullValue) {
|
| | | vssUpperSvrTblBuilder.addAuthPasswd(authPasswdJsonValue.asString());
|
| | | vssUpperSvrTblBuilder.addAuthPasswd((authPasswdJsonValue.asString()));
|
| | | }
|
| | |
|
| | | Json::Value domainJsonValue = requestJsonValue[VssUpperSvrTbl_Domain];
|
| | | if (domainJsonValue.type() != Json::ValueType::nullValue) {
|
| | | vssUpperSvrTblBuilder.addDomain(domainJsonValue.asString());
|
| | | vssUpperSvrTblBuilder.addDomain((domainJsonValue.asString()));
|
| | | }
|
| | |
|
| | | Json::Value iPJsonValue = requestJsonValue[VssUpperSvrTbl_IP];
|
| | | if (iPJsonValue.type() != Json::ValueType::nullValue) {
|
| | | vssUpperSvrTblBuilder.addIP(iPJsonValue.asString());
|
| | | vssUpperSvrTblBuilder.addIP((iPJsonValue.asString()));
|
| | | }
|
| | |
|
| | | Json::Value portJsonValue = requestJsonValue[VssUpperSvrTbl_Port];
|
| | | if (portJsonValue.type() != Json::ValueType::nullValue) {
|
| | | vssUpperSvrTblBuilder.addPort(portJsonValue.asInt());
|
| | | vssUpperSvrTblBuilder.addPort(std::stoi((portJsonValue.asString())));
|
| | | }
|
| | |
|
| | | Json::Value registerTimeJsonValue = requestJsonValue[VssUpperSvrTbl_RegisterTime];
|
| | | if (registerTimeJsonValue.type() != Json::ValueType::nullValue) {
|
| | | vssUpperSvrTblBuilder.addRegisterTime(registerTimeJsonValue.asInt());
|
| | | vssUpperSvrTblBuilder.addRegisterTime(std::stoi((registerTimeJsonValue.asString())));
|
| | | }
|
| | |
|
| | | Json::Value keepAliveTimeJsonValue = requestJsonValue[VssUpperSvrTbl_KeepAliveTime];
|
| | | if (keepAliveTimeJsonValue.type() != Json::ValueType::nullValue) {
|
| | | vssUpperSvrTblBuilder.addKeepAliveTime(keepAliveTimeJsonValue.asInt());
|
| | | vssUpperSvrTblBuilder.addKeepAliveTime(std::stoi((keepAliveTimeJsonValue.asString())));
|
| | | }
|
| | |
|
| | | Json::Value aliveJsonValue = requestJsonValue[VssUpperSvrTbl_Alive];
|
| | | if (aliveJsonValue.type() != Json::ValueType::nullValue) {
|
| | | vssUpperSvrTblBuilder.addAlive(aliveJsonValue.asInt());
|
| | | vssUpperSvrTblBuilder.addAlive(std::stoi((aliveJsonValue.asString())));
|
| | | }
|
| | |
|
| | | Json::Value isSyncTimeJsonValue = requestJsonValue[VssUpperSvrTbl_IsSyncTime];
|
| | | if (isSyncTimeJsonValue.type() != Json::ValueType::nullValue) {
|
| | | vssUpperSvrTblBuilder.addIsSyncTime(isSyncTimeJsonValue.asInt());
|
| | | vssUpperSvrTblBuilder.addIsSyncTime(std::stoi((isSyncTimeJsonValue.asString())));
|
| | | }
|
| | |
|
| | | Json::Value pushProtocolJsonValue = requestJsonValue[VssUpperSvrTbl_PushProtocol];
|
| | | if (pushProtocolJsonValue.type() != Json::ValueType::nullValue) {
|
| | | vssUpperSvrTblBuilder.addPushProtocol(pushProtocolJsonValue.asInt());
|
| | | vssUpperSvrTblBuilder.addPushProtocol(std::stoi((pushProtocolJsonValue.asString())));
|
| | | }
|
| | |
|
| | | Json::Value platformInfoJsonValue = requestJsonValue[VssUpperSvrTbl_PlatformInfo];
|
| | | if (platformInfoJsonValue.type() != Json::ValueType::nullValue) {
|
| | | vssUpperSvrTblBuilder.addPlatformInfo(platformInfoJsonValue.asInt());
|
| | | vssUpperSvrTblBuilder.addPlatformInfo(std::stoi((platformInfoJsonValue.asString())));
|
| | | }
|
| | |
|
| | | Json::Value isEnableJsonValue = requestJsonValue[VssUpperSvrTbl_IsEnable];
|
| | | if (isEnableJsonValue.type() != Json::ValueType::nullValue) {
|
| | | vssUpperSvrTblBuilder.addIsEnable(isEnableJsonValue.asInt());
|
| | | vssUpperSvrTblBuilder.addIsEnable(std::stoi((isEnableJsonValue.asString())));
|
| | | }
|
| | |
|
| | | Json::Value updateTimeJsonValue = requestJsonValue[VssUpperSvrTbl_UpdateTime];
|
| | | if (updateTimeJsonValue.type() != Json::ValueType::nullValue) {
|
| | | vssUpperSvrTblBuilder.addUpdateTime(updateTimeJsonValue.asString());
|
| | | vssUpperSvrTblBuilder.addUpdateTime((updateTimeJsonValue.asString()));
|
| | | }
|
| | | if (iDJsonValue.type() != Json::ValueType::nullValue) {
|
| | | string iDValue = iDJsonValue.asString();
|
| | |
| | |
|
| | | Json::Value iDJsonValue = requestJsonValue[VssUpperSvrTbl_ID];
|
| | | if (iDJsonValue.type() != Json::ValueType::nullValue) {
|
| | | vssUpperSvrTblBuilder.addID(iDJsonValue.asInt());
|
| | | vssUpperSvrTblBuilder.addID(std::stoi((iDJsonValue.asString())));
|
| | | }
|
| | |
|
| | | Json::Value nameJsonValue = requestJsonValue[VssUpperSvrTbl_Name];
|
| | | if (nameJsonValue.type() != Json::ValueType::nullValue) {
|
| | | vssUpperSvrTblBuilder.addName(nameJsonValue.asString());
|
| | | vssUpperSvrTblBuilder.addName((nameJsonValue.asString()));
|
| | | }
|
| | |
|
| | | Json::Value publicIDJsonValue = requestJsonValue[VssUpperSvrTbl_PublicID];
|
| | | if (publicIDJsonValue.type() != Json::ValueType::nullValue) {
|
| | | vssUpperSvrTblBuilder.addPublicID(publicIDJsonValue.asString());
|
| | | vssUpperSvrTblBuilder.addPublicID((publicIDJsonValue.asString()));
|
| | | }
|
| | |
|
| | | Json::Value authUsernameJsonValue = requestJsonValue[VssUpperSvrTbl_AuthUsername];
|
| | | if (authUsernameJsonValue.type() != Json::ValueType::nullValue) {
|
| | | vssUpperSvrTblBuilder.addAuthUsername(authUsernameJsonValue.asString());
|
| | | vssUpperSvrTblBuilder.addAuthUsername((authUsernameJsonValue.asString()));
|
| | | }
|
| | |
|
| | | Json::Value authPasswdJsonValue = requestJsonValue[VssUpperSvrTbl_AuthPasswd];
|
| | | if (authPasswdJsonValue.type() != Json::ValueType::nullValue) {
|
| | | vssUpperSvrTblBuilder.addAuthPasswd(authPasswdJsonValue.asString());
|
| | | vssUpperSvrTblBuilder.addAuthPasswd((authPasswdJsonValue.asString()));
|
| | | }
|
| | |
|
| | | Json::Value domainJsonValue = requestJsonValue[VssUpperSvrTbl_Domain];
|
| | | if (domainJsonValue.type() != Json::ValueType::nullValue) {
|
| | | vssUpperSvrTblBuilder.addDomain(domainJsonValue.asString());
|
| | | vssUpperSvrTblBuilder.addDomain((domainJsonValue.asString()));
|
| | | }
|
| | |
|
| | | Json::Value iPJsonValue = requestJsonValue[VssUpperSvrTbl_IP];
|
| | | if (iPJsonValue.type() != Json::ValueType::nullValue) {
|
| | | vssUpperSvrTblBuilder.addIP(iPJsonValue.asString());
|
| | | vssUpperSvrTblBuilder.addIP((iPJsonValue.asString()));
|
| | | }
|
| | |
|
| | | Json::Value portJsonValue = requestJsonValue[VssUpperSvrTbl_Port];
|
| | | if (portJsonValue.type() != Json::ValueType::nullValue) {
|
| | | vssUpperSvrTblBuilder.addPort(portJsonValue.asInt());
|
| | | vssUpperSvrTblBuilder.addPort(std::stoi((portJsonValue.asString())));
|
| | | }
|
| | |
|
| | | Json::Value registerTimeJsonValue = requestJsonValue[VssUpperSvrTbl_RegisterTime];
|
| | | if (registerTimeJsonValue.type() != Json::ValueType::nullValue) {
|
| | | vssUpperSvrTblBuilder.addRegisterTime(registerTimeJsonValue.asInt());
|
| | | vssUpperSvrTblBuilder.addRegisterTime(std::stoi((registerTimeJsonValue.asString())));
|
| | | }
|
| | |
|
| | | Json::Value keepAliveTimeJsonValue = requestJsonValue[VssUpperSvrTbl_KeepAliveTime];
|
| | | if (keepAliveTimeJsonValue.type() != Json::ValueType::nullValue) {
|
| | | vssUpperSvrTblBuilder.addKeepAliveTime(keepAliveTimeJsonValue.asInt());
|
| | | vssUpperSvrTblBuilder.addKeepAliveTime(std::stoi((keepAliveTimeJsonValue.asString())));
|
| | | }
|
| | |
|
| | | Json::Value aliveJsonValue = requestJsonValue[VssUpperSvrTbl_Alive];
|
| | | if (aliveJsonValue.type() != Json::ValueType::nullValue) {
|
| | | vssUpperSvrTblBuilder.addAlive(aliveJsonValue.asInt());
|
| | | vssUpperSvrTblBuilder.addAlive(std::stoi((aliveJsonValue.asString())));
|
| | | }
|
| | |
|
| | | Json::Value isSyncTimeJsonValue = requestJsonValue[VssUpperSvrTbl_IsSyncTime];
|
| | | if (isSyncTimeJsonValue.type() != Json::ValueType::nullValue) {
|
| | | vssUpperSvrTblBuilder.addIsSyncTime(isSyncTimeJsonValue.asInt());
|
| | | vssUpperSvrTblBuilder.addIsSyncTime(std::stoi((isSyncTimeJsonValue.asString())));
|
| | | }
|
| | |
|
| | | Json::Value pushProtocolJsonValue = requestJsonValue[VssUpperSvrTbl_PushProtocol];
|
| | | if (pushProtocolJsonValue.type() != Json::ValueType::nullValue) {
|
| | | vssUpperSvrTblBuilder.addPushProtocol(pushProtocolJsonValue.asInt());
|
| | | vssUpperSvrTblBuilder.addPushProtocol(std::stoi((pushProtocolJsonValue.asString())));
|
| | | }
|
| | |
|
| | | Json::Value platformInfoJsonValue = requestJsonValue[VssUpperSvrTbl_PlatformInfo];
|
| | | if (platformInfoJsonValue.type() != Json::ValueType::nullValue) {
|
| | | vssUpperSvrTblBuilder.addPlatformInfo(platformInfoJsonValue.asInt());
|
| | | vssUpperSvrTblBuilder.addPlatformInfo(std::stoi((platformInfoJsonValue.asString())));
|
| | | }
|
| | |
|
| | | Json::Value isEnableJsonValue = requestJsonValue[VssUpperSvrTbl_IsEnable];
|
| | | if (isEnableJsonValue.type() != Json::ValueType::nullValue) {
|
| | | vssUpperSvrTblBuilder.addIsEnable(isEnableJsonValue.asInt());
|
| | | vssUpperSvrTblBuilder.addIsEnable(std::stoi((isEnableJsonValue.asString())));
|
| | | }
|
| | |
|
| | | Json::Value updateTimeJsonValue = requestJsonValue[VssUpperSvrTbl_UpdateTime];
|
| | | if (updateTimeJsonValue.type() != Json::ValueType::nullValue) {
|
| | | vssUpperSvrTblBuilder.addUpdateTime(updateTimeJsonValue.asString());
|
| | | vssUpperSvrTblBuilder.addUpdateTime((updateTimeJsonValue.asString()));
|
| | | }
|
| | | responseJsonValue["message"] = "查询成功!";
|
| | | responseJsonValue["success"] = "true";
|
| | |
| | |
|
| | | Json::Value iDJsonValue = requestJsonValue[VssUpperSvrTbl_ID];
|
| | | if (iDJsonValue.type() != Json::ValueType::nullValue) {
|
| | | vssUpperSvrTblBuilder.addID(iDJsonValue.asInt());
|
| | | vssUpperSvrTblBuilder.addID(std::stoi((iDJsonValue.asString())));
|
| | | }
|
| | |
|
| | | Json::Value nameJsonValue = requestJsonValue[VssUpperSvrTbl_Name];
|
| | | if (nameJsonValue.type() != Json::ValueType::nullValue) {
|
| | | vssUpperSvrTblBuilder.addName(nameJsonValue.asString());
|
| | | vssUpperSvrTblBuilder.addName((nameJsonValue.asString()));
|
| | | }
|
| | |
|
| | | Json::Value publicIDJsonValue = requestJsonValue[VssUpperSvrTbl_PublicID];
|
| | | if (publicIDJsonValue.type() != Json::ValueType::nullValue) {
|
| | | vssUpperSvrTblBuilder.addPublicID(publicIDJsonValue.asString());
|
| | | vssUpperSvrTblBuilder.addPublicID((publicIDJsonValue.asString()));
|
| | | }
|
| | |
|
| | | Json::Value authUsernameJsonValue = requestJsonValue[VssUpperSvrTbl_AuthUsername];
|
| | | if (authUsernameJsonValue.type() != Json::ValueType::nullValue) {
|
| | | vssUpperSvrTblBuilder.addAuthUsername(authUsernameJsonValue.asString());
|
| | | vssUpperSvrTblBuilder.addAuthUsername((authUsernameJsonValue.asString()));
|
| | | }
|
| | |
|
| | | Json::Value authPasswdJsonValue = requestJsonValue[VssUpperSvrTbl_AuthPasswd];
|
| | | if (authPasswdJsonValue.type() != Json::ValueType::nullValue) {
|
| | | vssUpperSvrTblBuilder.addAuthPasswd(authPasswdJsonValue.asString());
|
| | | vssUpperSvrTblBuilder.addAuthPasswd((authPasswdJsonValue.asString()));
|
| | | }
|
| | |
|
| | | Json::Value domainJsonValue = requestJsonValue[VssUpperSvrTbl_Domain];
|
| | | if (domainJsonValue.type() != Json::ValueType::nullValue) {
|
| | | vssUpperSvrTblBuilder.addDomain(domainJsonValue.asString());
|
| | | vssUpperSvrTblBuilder.addDomain((domainJsonValue.asString()));
|
| | | }
|
| | |
|
| | | Json::Value iPJsonValue = requestJsonValue[VssUpperSvrTbl_IP];
|
| | | if (iPJsonValue.type() != Json::ValueType::nullValue) {
|
| | | vssUpperSvrTblBuilder.addIP(iPJsonValue.asString());
|
| | | vssUpperSvrTblBuilder.addIP((iPJsonValue.asString()));
|
| | | }
|
| | |
|
| | | Json::Value portJsonValue = requestJsonValue[VssUpperSvrTbl_Port];
|
| | | if (portJsonValue.type() != Json::ValueType::nullValue) {
|
| | | vssUpperSvrTblBuilder.addPort(portJsonValue.asInt());
|
| | | vssUpperSvrTblBuilder.addPort(std::stoi((portJsonValue.asString())));
|
| | | }
|
| | |
|
| | | Json::Value registerTimeJsonValue = requestJsonValue[VssUpperSvrTbl_RegisterTime];
|
| | | if (registerTimeJsonValue.type() != Json::ValueType::nullValue) {
|
| | | vssUpperSvrTblBuilder.addRegisterTime(registerTimeJsonValue.asInt());
|
| | | vssUpperSvrTblBuilder.addRegisterTime(std::stoi((registerTimeJsonValue.asString())));
|
| | | }
|
| | |
|
| | | Json::Value keepAliveTimeJsonValue = requestJsonValue[VssUpperSvrTbl_KeepAliveTime];
|
| | | if (keepAliveTimeJsonValue.type() != Json::ValueType::nullValue) {
|
| | | vssUpperSvrTblBuilder.addKeepAliveTime(keepAliveTimeJsonValue.asInt());
|
| | | vssUpperSvrTblBuilder.addKeepAliveTime(std::stoi((keepAliveTimeJsonValue.asString())));
|
| | | }
|
| | |
|
| | | Json::Value aliveJsonValue = requestJsonValue[VssUpperSvrTbl_Alive];
|
| | | if (aliveJsonValue.type() != Json::ValueType::nullValue) {
|
| | | vssUpperSvrTblBuilder.addAlive(aliveJsonValue.asInt());
|
| | | vssUpperSvrTblBuilder.addAlive(std::stoi((aliveJsonValue.asString())));
|
| | | }
|
| | |
|
| | | Json::Value isSyncTimeJsonValue = requestJsonValue[VssUpperSvrTbl_IsSyncTime];
|
| | | if (isSyncTimeJsonValue.type() != Json::ValueType::nullValue) {
|
| | | vssUpperSvrTblBuilder.addIsSyncTime(isSyncTimeJsonValue.asInt());
|
| | | vssUpperSvrTblBuilder.addIsSyncTime(std::stoi((isSyncTimeJsonValue.asString())));
|
| | | }
|
| | |
|
| | | Json::Value pushProtocolJsonValue = requestJsonValue[VssUpperSvrTbl_PushProtocol];
|
| | | if (pushProtocolJsonValue.type() != Json::ValueType::nullValue) {
|
| | | vssUpperSvrTblBuilder.addPushProtocol(pushProtocolJsonValue.asInt());
|
| | | vssUpperSvrTblBuilder.addPushProtocol(std::stoi((pushProtocolJsonValue.asString())));
|
| | | }
|
| | |
|
| | | Json::Value platformInfoJsonValue = requestJsonValue[VssUpperSvrTbl_PlatformInfo];
|
| | | if (platformInfoJsonValue.type() != Json::ValueType::nullValue) {
|
| | | vssUpperSvrTblBuilder.addPlatformInfo(platformInfoJsonValue.asInt());
|
| | | vssUpperSvrTblBuilder.addPlatformInfo(std::stoi((platformInfoJsonValue.asString())));
|
| | | }
|
| | |
|
| | | Json::Value isEnableJsonValue = requestJsonValue[VssUpperSvrTbl_IsEnable];
|
| | | if (isEnableJsonValue.type() != Json::ValueType::nullValue) {
|
| | | vssUpperSvrTblBuilder.addIsEnable(isEnableJsonValue.asInt());
|
| | | vssUpperSvrTblBuilder.addIsEnable(std::stoi((isEnableJsonValue.asString())));
|
| | | }
|
| | |
|
| | | Json::Value updateTimeJsonValue = requestJsonValue[VssUpperSvrTbl_UpdateTime];
|
| | | if (updateTimeJsonValue.type() != Json::ValueType::nullValue) {
|
| | | vssUpperSvrTblBuilder.addUpdateTime(updateTimeJsonValue.asString());
|
| | | vssUpperSvrTblBuilder.addUpdateTime((updateTimeJsonValue.asString()));
|
| | | }
|
| | | responseJsonValue["message"] = "查询成功!";
|
| | | responseJsonValue["success"] = "true";
|