|
|
@@ -1006,7 +1006,7 @@ void CHealthManagerEntity::ReadCenterConfigStr(SpReqAnsContext<HealthManagerServ
|
|
|
}
|
|
|
void CHealthManagerEntity::QueryCenterCfg(SpReqAnsContext<HealthManagerService_QueryCenterCfg_Req, HealthManagerService_QueryCenterCfg_Ans>::Pointer ctx)
|
|
|
{
|
|
|
- if (ctx->Req.key.IsNullOrEmpty() || ctx->Req.entityName.IsNullOrEmpty())
|
|
|
+ if (ctx->Req.key.IsNullOrEmpty() || ctx->Req.module.IsNullOrEmpty())
|
|
|
ctx->Answer(Error_Param);
|
|
|
else
|
|
|
{
|
|
|
@@ -1014,7 +1014,7 @@ void CHealthManagerEntity::QueryCenterCfg(SpReqAnsContext<HealthManagerService_Q
|
|
|
CSmartPointer<IConfigInfo> spCerConfig;
|
|
|
ErrorCodeEnum eErrCode = GetFunction()->OpenConfig(Config_CenterSetting, spCerConfig);
|
|
|
if (eErrCode == Error_Succeed)
|
|
|
- spCerConfig->ReadConfigValue(ctx->Req.entityName, ctx->Req.key, str);
|
|
|
+ spCerConfig->ReadConfigValue(ctx->Req.module.GetData(), ctx->Req.key, str);
|
|
|
ctx->Ans.value = str;
|
|
|
ctx->Answer(Error_Succeed);
|
|
|
}
|