feat(history): 新增历史开奖数据分析功能
- 添加History控制器和模型实现开奖数据统计分析 - 实现遗漏号码、走势图、冷热号码等基础分析功能 - 添加波色分析、生肖分析、奇偶分析等专项统计 - 集成尾号转移矩阵和首号转移矩阵概率分析 - 在后台仪表板展示综合统计数据表格
This commit is contained in:
@@ -22,7 +22,7 @@ class History extends Backend
|
||||
* 无需额外权限检查的方法(但仍在 admin 模块内,需要 admin 登录)
|
||||
* @var array
|
||||
*/
|
||||
protected $noNeedRight = ['missingNum', 'trendData', 'hotColdNumbers', 'colorWaveAnalysis', 'zodiacAnalysis', 'oddEvenAnalysis', 'bigSmallAnalysis', 'specialTrend', 'consecutiveNumbers', 'tailNumbers', 'dashboard', 'specialHeatmap', 'specialHotColdAction', 'zoneTransition', 'colorWaveTransition', 'zoneToColorTransition', 'zodiacTransition'];
|
||||
protected $noNeedRight = ['missingNum', 'trendData', 'hotColdNumbers', 'colorWaveAnalysis', 'zodiacAnalysis', 'oddEvenAnalysis', 'bigSmallAnalysis', 'specialTrend', 'consecutiveNumbers', 'tailNumbers', 'dashboard', 'specialHeatmap', 'specialHotColdAction', 'zoneTransition', 'colorWaveTransition', 'zoneToColorTransition', 'zodiacTransition', 'tailNumberTransition', 'headNumberTransition'];
|
||||
|
||||
public function _initialize()
|
||||
{
|
||||
@@ -358,5 +358,35 @@ class History extends Backend
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 尾号转移概率统计
|
||||
*/
|
||||
public function tailNumberTransition()
|
||||
{
|
||||
if ($this->request->isAjax()) {
|
||||
$periods = $this->request->get('periods', 100, 'intval');
|
||||
if ($periods < 10 || $periods > 500) {
|
||||
$this->error('期数范围必须在 10-500 之间');
|
||||
}
|
||||
$result = $this->model->getTailNumberTransition($periods);
|
||||
$this->success('查询成功', null, $result);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 首号转移概率统计
|
||||
*/
|
||||
public function headNumberTransition()
|
||||
{
|
||||
if ($this->request->isAjax()) {
|
||||
$periods = $this->request->get('periods', 100, 'intval');
|
||||
if ($periods < 10 || $periods > 500) {
|
||||
$this->error('期数范围必须在 10-500 之间');
|
||||
}
|
||||
$result = $this->model->getHeadNumberTransition($periods);
|
||||
$this->success('查询成功', null, $result);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user