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

upload video files

上级 eab1f6d3
......@@ -31,7 +31,7 @@
],
"evpusher":[
{
"enabled":1,
"enabled":0,
"iid":1,
"password":"",
"sn":"PSBV7GKN",
......
......@@ -542,18 +542,22 @@ public:
if(req.has_param("sn") && req.has_param("patch")) {
string _sn = req.get_param_value("sn");
string _patch = req.get_param_value("patch");
spdlog::info("evcloudsvc patch cfg for {}: {}", _sn, cfg.dump());
if(!_sn.empty() && _patch == "true") {
// verify sn
ret = getConfigForDevice(_sn);
if(ret["code"]!= 0) {
//
if(ret["code"] != 0) {
spdlog::error("evcloudsvc failed to get confg for {}: {}", _sn, ret["msg"].get<string>());
}
else {
ret["data"].merge_patch(cfg);
ret["data"] = ret["data"].patch(cfg);
spdlog::info("evcloudsvc merged {}: {} \n\t{}", _sn, cfg.dump(), ret["data"].dump());
ret = this->config(ret);
}
}
}
else {
spdlog::info("full config: {}", cfg.dump());
ret = this->config(cfg);
}
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论