Browse Source

分站路径更新逻辑

zzj 6 years ago
parent
commit
bf4ee755e3
2 changed files with 2 additions and 2 deletions
  1. 1 1
      ant.cpp
  2. 1 1
      websocket/constdef.h

+ 1 - 1
ant.cpp

@@ -46,7 +46,7 @@ void sit_list::read_ant_path(int id)
      }
      else
      {
-         sql.append(" AND reader_id=");
+         sql.append(" where reader_id=");
          sql.append(std::to_string(id));
          sql.append(";");
 

+ 1 - 1
websocket/constdef.h

@@ -53,7 +53,7 @@
 #define JSON_KEY_NAME "name"
 #define JSON_KEY_NAME_MAP "map"
 #define JSON_KEY_NAME_AREA "area"
-#define JSON_KEY_NAME_PATH "path"
+#define JSON_KEY_NAME_PATH "reader_path_tof_n"
 #define JSON_KEY_NAME_READER "reader"
 #define JSON_KEY_NAME_CARD "card"
 #define JSON_KEY_NAME_STAFF "staff"