Explorar o código

数据趋势图

cqpCow %!s(int64=2) %!d(string=hai) anos
pai
achega
95cfc5df00
Modificáronse 1 ficheiros con 8 adicións e 1 borrados
  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){