作者 王智

修改

... ... @@ -373,8 +373,13 @@ class Question extends Api
}
}
foreach ($DayArray as $k => $v) {
dump($v);
$Day[$k]['date'] = $v[0]['date'];
$Day[$k]['V'] = array_sum(array_column($v, 'V'));
$Day[$k]['P'] = array_sum(array_column($v, 'P'));
$Day[$k]['K'] = array_sum(array_column($v, 'K'));
}
dump($Day);
} else {
$Day = [];
$Month = [];
... ...