|
@@ -18,8 +18,8 @@ class ThirdService extends Service
|
|
|
$list = Device::where('del_time',0)->select('*')->get()->toArray();
|
|
|
|
|
|
while (true) {
|
|
|
- sleep(60);
|
|
|
- $insert = [];
|
|
|
+// sleep(60);
|
|
|
+// $insert = [];
|
|
|
$jwkey = [];
|
|
|
foreach ($list as $k=>$v){
|
|
|
$value = 0;
|
|
@@ -80,10 +80,10 @@ class ThirdService extends Service
|
|
|
}
|
|
|
|
|
|
public function j_rand(){
|
|
|
- return (rand(0,100)/10000);
|
|
|
+ return (rand(0,100)/1000);
|
|
|
}
|
|
|
public function w_rand(){
|
|
|
- return (rand(0,100)/10000);
|
|
|
+ return (rand(0,100)/1000);
|
|
|
}
|
|
|
public function cgq_rand(){
|
|
|
return rand(0,20)+(rand(0,100)/100);
|