feat: add comprehensive dashboard showing all analysis metrics in one view

This commit is contained in:
2026-04-22 00:01:20 +08:00
parent 0b3f7210e0
commit 29e364f74a
5 changed files with 180 additions and 1 deletions
+16
View File
@@ -446,5 +446,21 @@ class History extends Model
return ['all' => $all];
}
/**
* 综合统计面板
*/
public function getDashboardData($periods = 30, $type = 'all')
{
return [
'hotcold' => $this->getHotColdNumbers($periods, $type),
'colorwave' => $this->getColorWaveAnalysis($periods, $type),
'zodiac' => $this->getZodiacAnalysis($periods, $type),
'oddeven' => $this->getOddEvenAnalysis($periods, $type),
'bigsmall' => $this->getBigSmallAnalysis($periods, $type),
'sum' => $this->getSumAnalysis($periods),
'tailnumbers' => $this->getTailNumbers($periods, $type)
];
}
}