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

cloud cmd api for platform client

上级 a4d3dedc
...@@ -165,12 +165,20 @@ private: ...@@ -165,12 +165,20 @@ private:
exit(0); exit(0);
}else if(metaValue == "record") { }else if(metaValue == "record") {
try{ try{
json body = json::parse(body2str(v[2]));
if(body.count("start") != 0 && body["start"].is_number() && body.count("end") != 0 && body["end"].is_number()) {
json evt;
evt["type"] = "event";
evt["start"] = body["start"];
evt["end"] = body["end"];
eventQueue.push(evt);
bProcessed = true;
}
}catch(exception &e) { }catch(exception &e) {
spdlog::error("evslicer {} exception in handleCloudMsg: {}", e.what());
} }
}else{ }else{
//
} }
} }
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论