|
@@ -187,8 +187,9 @@ class Api extends CatchController
|
|
|
$redis=Cache::store('redis')->handler();
|
|
|
$dispose = new dispose($redis);
|
|
|
$keylist= $dispose->getStations();
|
|
|
+ debug_log("clear_label","查询数据".json_encode($keylist));
|
|
|
|
|
|
- if(empty($keylist)){
|
|
|
+ if(empty($keylist)){
|
|
|
continue;
|
|
|
}
|
|
|
foreach($keylist as $station){
|
|
@@ -423,8 +424,6 @@ class Api extends CatchController
|
|
|
|
|
|
//消息处理
|
|
|
public function handleMessage($text, $mac, $time, $ues_redis){
|
|
|
- $EXP_TIME = 20;
|
|
|
- $EFF_SIG_NUM = 10;
|
|
|
while(strlen($text)>=24){
|
|
|
|
|
|
$da=substr($text,0,24);
|
|
@@ -553,8 +552,8 @@ class Api extends CatchController
|
|
|
"left" => number_format( $sum3/$cacCount, 2 ),
|
|
|
"right" => number_format( $sum4/$cacCount, 2 ),
|
|
|
];
|
|
|
-
|
|
|
- if ($cacCount == $EFF_SIG_NUM) {
|
|
|
+ // var_dump($cacCount, $EFF_SIG_NUM, "dddddddd");
|
|
|
+ if ($cacCount == $config['effSigNum']) {
|
|
|
# code...
|
|
|
$info = $this->compAndPush($info ,$config);
|
|
|
}
|
|
@@ -588,6 +587,7 @@ class Api extends CatchController
|
|
|
$flagIn = $avg["front"] < $config["front_in"] || $avg["behind"] < $config["behind_in"] || $avg["left"] < $config["left_in"] || $avg["right"] < $config["right_in"];
|
|
|
$flagOut = $avg["front"] > $config["front_out"] && $avg["behind"] > $config["behind_out"] && $avg["left"] > $config["left_out"] && $avg["right"] > $config["right_out"];
|
|
|
|
|
|
+
|
|
|
$url="http://47.114.185.186:8115/api/areaReport";
|
|
|
if($flagIn && $status == 2){
|
|
|
if ($info["pushTime"] && (time()-$info['pushTime']) < 5 ) {
|