|
|
@@ -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;
|