|
@@ -757,7 +757,11 @@ void event_list::_ev_to_node_v(std::shared_ptr<ya_event> ev_ptr,
|
|
|
tool_json::add_member(ev, JSON_KEY_EVENT_EVENT_ID, std::to_string(ev_ptr->m_id), allocator);
|
|
|
ev.AddMember(JSON_KEY_EVENT_TYPE_ID,ev_ptr->m_ev_type, allocator);
|
|
|
|
|
|
- tool_json::add_member(ev, JSON_KEY_EVENT_OBJ_ID, ev_ptr->m_obj_id, allocator);
|
|
|
+ if(ev_ptr->m_ev_type == ET_PERSON_VEHICLE_ANTI_COLLISION){
|
|
|
+ tool_json::add_member(ev, JSON_KEY_EVENT_OBJ_ID, ev_ptr->m_desc, allocator);
|
|
|
+ }else{
|
|
|
+ tool_json::add_member(ev, JSON_KEY_EVENT_OBJ_ID, ev_ptr->m_obj_id, allocator);
|
|
|
+ }
|
|
|
ev.AddMember(JSON_KEY_EVENT_X,ev_ptr->x, allocator);
|
|
|
ev.AddMember(JSON_KEY_EVENT_Y,ev_ptr->y, allocator);
|
|
|
|