likang 2 년 전
부모
커밋
229e4a1ddc
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      catch/api/service/dispose.php

+ 2 - 1
catch/api/service/dispose.php

@@ -368,7 +368,8 @@ public function set_label_history($data){
     $head_data= $this->selectHash($key,$head);
     $tail_data=$this->selectHash($key,$tail);
     debug_log("InAndOUT","最旧信号间隔".($data["report_time"]-$tail_data[count($tail_data)-1]["report_time"]));
-    debug_log("InAndOUT","最旧信号间隔".json_encode($tail_data[count($tail_data)-1]));
+    debug_log("InAndOUT","最旧信号间隔".json_encode($tail_data));
+    debug_log("InAndOUT","最旧信号间隔".json_encode(count($tail_data)-1));
     debug_log("InAndOUT","最旧信号间隔".$data["report_time"]);
     if(!empty($tail_data)){
         if(($data["report_time"]-$tail_data[count($tail_data)-1]["report_time"])>6){