Browse Source

数据趋势图

cqpCow 2 năm trước cách đây
mục cha
commit
95cfc5df00
1 tập tin đã thay đổi với 8 bổ sung1 xóa
  1. 8 1
      app/Service/ScreenService.php

+ 8 - 1
app/Service/ScreenService.php

@@ -368,8 +368,15 @@ class ScreenService extends Service
                 'value' => $value['value']
             ];
         }
+        $final = [];
+        foreach ($return as $key => $value){
+            $final[] = [
+                'device_no' => $key,
+                'detail' => $value
+            ];
+        }
 
-        return $return;
+        return $final;
     }
 
     public function screenHistoryList($data){