| 
                
               | 
              
                
               | 
              
                @@ -221,8 +221,8 @@ def tgu_group_user_update_api(request): 
               | 
            
            
            
              | 
                221
               | 
              
                221
               | 
              
                 def get_geo_submit_flag(geo_at, gather_at): 
               | 
            
            
            
              | 
                222
               | 
              
                222
               | 
              
                     """ 是否上传过位置字段(即是否失联) """ 
               | 
            
            
            
              | 
                223
               | 
              
                223
               | 
              
                     if geo_at and gather_at: 
               | 
            
            
            
              | 
                224
               | 
              
                
               | 
              
                -        geo_at = tc.string_to_utc_datetime(geo_at, format='%Y-%m-%dT%H:%M:%SZ') 
               | 
            
            
            
              | 
                225
               | 
              
                
               | 
              
                -        gather_at = tc.string_to_utc_datetime(gather_at, format='%Y-%m-%dT%H:%M:%SZ') 
               | 
            
            
            
              | 
                
               | 
              
                224
               | 
              
                +        geo_at = tc.utc_string_to_utc_datetime(geo_at, format='%Y-%m-%dT%H:%M:%SZ') 
               | 
            
            
            
              | 
                
               | 
              
                225
               | 
              
                +        gather_at = tc.utc_string_to_utc_datetime(gather_at, format='%Y-%m-%dT%H:%M:%SZ') 
               | 
            
            
            
              | 
                226
               | 
              
                226
               | 
              
                         current_dt = tc.utc_datetime() 
               | 
            
            
            
              | 
                227
               | 
              
                227
               | 
              
                         delta_seconds = tc.total_seconds(gather_at - current_dt) 
               | 
            
            
            
              | 
                228
               | 
              
                228
               | 
              
                         # 距离集合时间超过30分钟是5分钟,15分钟到30分钟是3分钟,15分钟以内是1分钟 
               |