feat: replace sum analysis with special trend line chart, zodiac/tail numbers use bar charts

This commit is contained in:
2026-04-22 00:13:09 +08:00
parent 074aa4d677
commit 79f1a1dc80
3 changed files with 70 additions and 39 deletions
+4 -4
View File
@@ -22,7 +22,7 @@ class History extends Backend
* 无需额外权限检查的方法(但仍在 admin 模块内,需要 admin 登录)
* @var array
*/
protected $noNeedRight = ['missingNum', 'trendData', 'hotColdNumbers', 'colorWaveAnalysis', 'zodiacAnalysis', 'oddEvenAnalysis', 'bigSmallAnalysis', 'sumAnalysis', 'consecutiveNumbers', 'tailNumbers', 'dashboard'];
protected $noNeedRight = ['missingNum', 'trendData', 'hotColdNumbers', 'colorWaveAnalysis', 'zodiacAnalysis', 'oddEvenAnalysis', 'bigSmallAnalysis', 'specialTrend', 'consecutiveNumbers', 'tailNumbers', 'dashboard'];
public function _initialize()
{
@@ -169,16 +169,16 @@ class History extends Backend
}
/**
* 和值分析
* 特码走势
*/
public function sumAnalysis()
public function specialTrend()
{
if ($this->request->isAjax()) {
$periods = $this->request->get('periods', 30, 'intval');
if ($periods < 10 || $periods > 100) {
$this->error('期数范围必须在 10-100 之间');
}
$result = $this->model->getSumAnalysis($periods);
$result = $this->model->getSpecialTrend($periods);
$this->success('查询成功', null, $result);
}
}