|
|
@@ -452,7 +452,7 @@ int CMGDataHandler::HandleConfRead(string tag, string type, yyjson_mut_doc* doc,
|
|
|
{
|
|
|
int nNo = atoi(no.c_str()) - 1;
|
|
|
auto pBase = CResistAlarmMng::Instance()->Find(mo, mp, nNo, eZL_ALARMTYPE::MAX_OVER_LIMIT);
|
|
|
- if (pBase)
|
|
|
+ if (pBase && pBase->enable)
|
|
|
{
|
|
|
string name1, name2, name3;
|
|
|
CMonitorObjectMng::Instance()->GetNameByMoMp(mo + "." + mp, name1, name2, name3);
|
|
|
@@ -579,7 +579,7 @@ int CMGDataHandler::HandleConfRead(string tag, string type, yyjson_mut_doc* doc,
|
|
|
int nNo = atoi(no.c_str()) - 1;
|
|
|
if (nNo != 2) return 400;
|
|
|
auto pBase = CResistAlarmMng::Instance()->Find(mo, mp, nNo, eZL_ALARMTYPE::FRICTION_OVER_LIMIT);
|
|
|
- if (pBase)
|
|
|
+ if (pBase && pBase->enable)
|
|
|
{
|
|
|
assert(pBase->type == eZL_ALARMTYPE::FRICTION_OVER_LIMIT);
|
|
|
auto pInfo = (FRICTION_OVER_LIMIT_INFO*)pBase;
|