Browse Source

翌星大屏样式优化

曹鹤洋 1 year ago
parent
commit
e1d268c8f2
1 changed files with 3 additions and 3 deletions
  1. 3 3
      application/api/controller/Index.php

+ 3 - 3
application/api/controller/Index.php

@@ -339,11 +339,11 @@ class Index extends Api
         }
         $row = cache('jtClDbToRedis');
         $result['categories']=[];
-        $result['series']['name']=$jtbh;
-        $result['series']['data']=[];
+        $result['series'][0]['name']=$jtbh;
+        $result['series'][0]['data']=[];
         if($row && array_key_exists($jtbh,$row)){
             $result['categories'] = array_map('strval', array_keys($row[$jtbh]));
-            $result['series']['data'] = array_values($row[$jtbh]);
+            $result['series'][0]['data'] = array_values($row[$jtbh]);
         }
         
         $res['status']=0;