|
@@ -314,7 +314,7 @@ class Api extends CatchController
|
|
|
$data=json_decode($jsonData,true);
|
|
|
// debug_log("InAndOUT",$data['cnt']);
|
|
|
$time=$data['time'];
|
|
|
- $mac=$data['mac'];
|
|
|
+ $mac=$data['devId'];
|
|
|
$text=$text.$data['cnt'];
|
|
|
|
|
|
if(strlen($text)<24){
|
|
@@ -542,10 +542,10 @@ class Api extends CatchController
|
|
|
$sum4 = 0;
|
|
|
foreach ($rssisArr as $k => $v) {
|
|
|
# code...
|
|
|
- $sum1 += ($v["front"] == 255 ? 85 : $v["front"]);
|
|
|
- $sum2 += ($v["behind"] == 255 ? 85 : $v["behind"]);
|
|
|
- $sum3 += ($v["left"] == 255 ? 85 : $v["left"]);
|
|
|
- $sum4 += ($v["right"] == 255 ? 85 : $v["right"]);
|
|
|
+ $sum1 += ($v["front"] == 255 ? 90 : $v["front"]);
|
|
|
+ $sum2 += ($v["behind"] == 255 ? 90 : $v["behind"]);
|
|
|
+ $sum3 += ($v["left"] == 255 ? 90 : $v["left"]);
|
|
|
+ $sum4 += ($v["right"] == 255 ? 90 : $v["right"]);
|
|
|
}
|
|
|
$info["avg"] = [
|
|
|
"front" => number_format( $sum1/$cacCount, 2 ),
|