likang 2 år sedan
förälder
incheckning
41670a66d6
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1 1
      catch/tag_history/controller/TagHistory.php

+ 1 - 1
catch/tag_history/controller/TagHistory.php

@@ -129,7 +129,7 @@ class TagHistory extends CatchController
             $list[$key]['addTime'] = $value['addTime'];
             
             $value['ave_rssi']= $this->tagHistoryModel->where($towwhere)->where($onewhere)->avg('rssi');
-            $list[$key]['ave_rssi'] =  $value['ave_rssi'];
+            $list[$key]['ave_rssi'] =number_format($value['ave_rssi'],2);
           
             $value['num']=$this->tagHistoryModel->where($onewhere)->where($towwhere)->count();
             $list[$key]['num'] = $value['num'];