| | |
| | | m_triggerElement(0,0), |
| | | m_lTime(AppUtil::getCurrentUs()), |
| | | pManagerEsDB(nullptr), |
| | | m_bIsMask(true), |
| | | m_bSetWH(false) |
| | | m_bIsMask(true) |
| | | { |
| | | pManagerEsDB=new EsDBTool(appPref.getStringData("ipAdd"), appPref.getIntData("ipPort")); |
| | | |
| | |
| | | t_json["videoIp"] = m_sdkRule.strAddr.toStdString(); // 设备ip |
| | | t_json["ack_alarm"]=m_triggerElement.getTriggerState()?"0":""; // que ren shi fou bao jing |
| | | t_json["cluster_id"]=appPref.getStringData("clusterID");; // ji qun id |
| | | |
| | | t_json["imgKey"] = obj.properties["imgKey"]; |
| | | INFO("SaveImgKeyToES: "<<obj.properties["imgKey"]); |
| | | bool retface = false; |
| | | if(pManagerEsDB) |
| | | retface = pManagerEsDB->insertData("personaction", "perVideoAction", t_json.toStyledString(), str_uuid); |