Browse Source

卡定位,区域信息日志

chensongchao 5 years ago
parent
commit
32a0f2fdb5
1 changed files with 2 additions and 0 deletions
  1. 2 0
      area.cpp

+ 2 - 0
area.cpp

@@ -772,6 +772,8 @@ void area_tool::on_point(const std::shared_ptr<card_location_base>& c,const poin
          snprintf(sql, 1024, "REPLACE INTO rt_location (card_id, site_id,cur_time, x, y, z, state, area_info) VALUES (%s, %d,'%s',%lf, %lf, %lf, 0, '%s');",
              tool_other::type_id_to_str(c->m_type, c->m_id).c_str(), m_site->id(),_time.c_str(), pt.x, pt.y, pt.z, strAreaInfo.c_str());
          db_tool::PushAsync(sql);
+         log_info("insert rt_location: card=%d site_id=%d,point=%.2f-%.2f,area_info=%s"
+                 ,c->m_id,m_site->id(),pt.x,pt.y,strAreaInfo.c_str());
     }
 }