提交 c1e0aa49 authored 作者: blu's avatar blu

cloud cmd api for platform client

上级 f8b98b69
...@@ -568,7 +568,7 @@ private: ...@@ -568,7 +568,7 @@ private:
json ret; json ret;
ret["code"] = -1; ret["code"] = -1;
ret["msg"] = "unkown msg"; ret["msg"] = "unkown msg";
spdlog::info("handle cmd"); spdlog::info("evcloudsvc handle cmd: {}", body.dump());
if(body.count("target") != 0 && body["target"].is_string() && body.count("metaType") !=0 && body["metaType"].is_string() && if(body.count("target") != 0 && body["target"].is_string() && body.count("metaType") !=0 && body["metaType"].is_string() &&
body.count("data") != 0 && body["data"].is_object() && body.count("metaValue") !=0 && body["metaValue"].is_string()) { body.count("data") != 0 && body["data"].is_object() && body.count("metaValue") !=0 && body["metaValue"].is_string()) {
// it's msg to edge. // it's msg to edge.
......
...@@ -182,8 +182,8 @@ private: ...@@ -182,8 +182,8 @@ private:
}catch(exception &e) { }catch(exception &e) {
spdlog::error("evslicer {} exception in handleCloudMsg: {}", selfId, e.what()); spdlog::error("evslicer {} exception in handleCloudMsg: {}", selfId, e.what());
} }
}else{ }else if(metaValue == "debug:list_files"){
// debugFilesRing();
} }
} }
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论