Browse Source

his_location中last_time 升井没有赋值,修改功能

chensongchao 5 years ago
parent
commit
6e82aeecb3
1 changed files with 6 additions and 5 deletions
  1. 6 5
      his_location.cpp

+ 6 - 5
his_location.cpp

@@ -155,11 +155,6 @@ void location_card::push(uint64_t timestamp,const point & p,int32_t areaid,int32
         m_d.emplace(p,timestamp);
         return ;
     }
-    if (bclose) //卡移除后直接更新his_location
-    {
-        update(p,timestamp,true);
-        return;
-    }
 
     if(!is_valid())
     {
@@ -184,6 +179,12 @@ void location_card::push(uint64_t timestamp,const point & p,int32_t areaid,int32
         insert();
         return;
     }
+    if (bclose) //卡移除后直接更新his_location
+    {
+        update(p,timestamp,true);
+        return;
+    }
+
     bool flag=false;
     int  iflag=0;
     //判断是否路径发生了变化