gogs před 1 rokem
rodič
revize
b0e7ddd35e
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  1. 2 2
      app/Service/ThirdService.php

+ 2 - 2
app/Service/ThirdService.php

@@ -28,7 +28,7 @@ class ThirdService extends Service
                     case 1:
                         $value = $this->cgq_rand();
                         $point_name = strpos($v['title'], '温度') !== false ? '温度' : '湿度';
-                        if($this->zt_rand()) $point_name1 = $point_name.'异常';
+                        if($this->zt_rand() === 1) $point_name1 = $point_name.'异常';
                         break;
                     case 2:
                         $value = $this->kg_rand();
@@ -94,6 +94,6 @@ class ThirdService extends Service
         return rand(0,1);
     }
     public function zt_rand(){
-        return rand(0,1);
+        return rand(0,5);
     }
 }