Description:Modifying compilation alarms

Match-id-788e986812623b0d3f468943e7c1d4d76fede43b
This commit is contained in:
xxxx
2022-10-08 14:07:56 +08:00
parent e965b5cf43
commit a6cb9f53a9
13 changed files with 57 additions and 51 deletions
+5 -1
View File
@@ -132,7 +132,11 @@ bool IsUint64(const nlohmann::json& jsonObj, const std::string& key)
std::string GetNodeDesc(std::string parameters)
{
nlohmann::json parObj = nlohmann::json::parse(parameters);
nlohmann::json parObj = nlohmann::json::parse(parameters, nullptr, false);
if (parObj.is_discarded()) {
DHLOGE("parObj parse failed!");
return "";
}
std::string nodeName = "N/A";
std::string physicalPath = "N/A";
int32_t classes = -1;