likang лет назад: 2
Родитель
Сommit
41670a66d6
1 измененных файлов с 1 добавлено и 1 удалено
  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'];