likang 2 rokov pred
rodič
commit
0e0a903437

+ 1 - 1
catch/api/controller/Api.php

@@ -220,7 +220,7 @@ class Api extends CatchController
                         $status=$json_data['status'];
                         $count= count($a);
                         if((time()-$json_data["time"])<8){
-                            debug_log("clear_label", $item.':'. "标签上报间隔没有超过20秒进行跳过");
+                            debug_log("clear_label", $item.':'. "标签上报间隔没有超过8秒进行跳过");
                             continue;
                         }
                         if($count<5){

+ 3 - 3
catch/api/service/dispose.php

@@ -465,12 +465,12 @@ public function second_create_direction($mac,$label){
         return false;
    }
    if($head_dir==1){
-        $res=2;
-   }else{
         $res=1;
+   }else{
+        $res=2;
    }
    
-   debug_log("second_dirt","最终结果".json_encode(["dir"=>$res,"time"=>$time]));
+   debug_log("second_dirt","最终结果".json_encode(["dirt"=>$res,"time"=>$time]));
     return ["dirt"=>$res,"time"=>$time];
 
 }