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

upload video files

上级 19b4bfd0
...@@ -92,7 +92,8 @@ ...@@ -92,7 +92,8 @@
"bit": "cpp", "bit": "cpp",
"*.tcc": "cpp", "*.tcc": "cpp",
"memory_resource": "cpp", "memory_resource": "cpp",
"csignal": "cpp" "csignal": "cpp",
"__functional_03": "cpp"
}, },
"C_Cpp.errorSquiggles": "Disabled" "C_Cpp.errorSquiggles": "Disabled"
} }
\ No newline at end of file
...@@ -519,7 +519,21 @@ public: ...@@ -519,7 +519,21 @@ public:
string msg; string msg;
try { try {
json cfg = json::parse(req.body); json cfg = json::parse(req.body);
ret = this->config(cfg); if(req.has_param("sn") && req.has_param("patch")){
string _sn = req.get_param_value("sn");
string _patch = req.get_param_value("patch");
if(!_sn.empty() && _patch == "true") {
// verify sn
ret = getConfigForDevice(_sn);
if(ret["code"]!= 0) {
//
}else{
ret["data"].merge_patch(cfg);
}
}
}else{
ret = this->config(cfg);
}
} }
catch (exception &e) { catch (exception &e) {
msg = string("evcloudsvc exception on POST /config: ") + e.what(); msg = string("evcloudsvc exception on POST /config: ") + e.what();
......
...@@ -615,7 +615,7 @@ public: ...@@ -615,7 +615,7 @@ public:
spdlog::error("evdaemon {} failed to setup dealer", devSn); spdlog::error("evdaemon {} failed to setup dealer", devSn);
exit(1); exit(1);
} }
spdlog::info("evdaemon {} connected to cloud {}", devSn, cloudAddr); spdlog::info("evdaemon {} connecting to cloud {}", devSn, cloudAddr);
// setup cloud msg processor // setup cloud msg processor
thCloud = thread([this]() { thCloud = thread([this]() {
while(true) { while(true) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论