作者 王智

修改

... ... @@ -374,9 +374,9 @@ class Question extends Api
}
foreach ($DayArray as $k => $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'));
$Day[$k]['V'] = (array_sum(array_column($v, 'V')))/count($v);
$Day[$k]['P'] = (array_sum(array_column($v, 'P')))/count($v);
$Day[$k]['K'] = (array_sum(array_column($v, 'K')))/count($v);
}
dump($Day);
... ...