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

evcloudsvc bugfix: exception get evmgr config

上级 4fabe8c9
...@@ -231,12 +231,13 @@ class HttpSrv{ ...@@ -231,12 +231,13 @@ class HttpSrv{
}else{ }else{
modname = module; modname = module;
} }
key = sn + ":" + modname;
key = this->configMap.at(sn + ":" + modname);
} }
if(!key.empty()) { if(!key.empty()) {
json config; json config;
int iret = LVDB::getLocalConfig(config, this->configMap[key]); int iret = LVDB::getLocalConfig(config, key);
if(iret < 0) { if(iret < 0) {
ret["code"] = 1; ret["code"] = 1;
ret["msg"] = "evcloud failed to get config with k, v:" + key + " " + this->configMap[key].get<string>(); ret["msg"] = "evcloud failed to get config with k, v:" + key + " " + this->configMap[key].get<string>();
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论