修改运行监控场站及设备信息查询接口

This commit is contained in:
lixiaoyuan
2025-09-06 15:23:07 +08:00
parent aca9a8f0ae
commit 566a3b050c
17 changed files with 468 additions and 302 deletions

View File

@@ -10,8 +10,8 @@ static std::map<std::string, std::map<std::string, REGInfo>> g_mapRegInfo;
void MqttClient::loadDataStruct(std::string filename)
{
NJsonNode json;
NJson::load(filename, json);
njson json;
JSON::load(filename, json);
// 遍历 JSON 对象
for (auto& jsonitem : json.items())
@@ -321,6 +321,6 @@ void MqttClient::parseTQ(std::string& text) {};
string MQTT::packEquipmentInfo()
{
NJsonNode jsonroot;
njson jsonroot;
return jsonroot.dump();
}