feat(history): 新增历史开奖数据分析功能

- 添加History控制器和模型实现开奖数据统计分析
- 实现遗漏号码、走势图、冷热号码等基础分析功能
- 添加波色分析、生肖分析、奇偶分析等专项统计
- 集成尾号转移矩阵和首号转移矩阵概率分析
- 在后台仪表板展示综合统计数据表格
This commit is contained in:
2026-04-30 22:45:03 +08:00
parent d18c23cd57
commit 6a782c2d65
4 changed files with 212 additions and 5 deletions
+11 -3
View File
@@ -4,6 +4,7 @@ namespace app\timetask\controller;
use app\common\controller\Api;
use think\Db;
use think\exception\HttpResponseException;
class Index extends Api
{
@@ -38,12 +39,19 @@ class Index extends Api
}
}
$this->success('获取成功');
} catch (\Exception $e) {
$this->error($e->getMessage());
} catch (HttpResponseException $e) {
// 这是框架正常的响应异常,直接抛出让它继续执行
throw $e;
} catch (\Throwable $e) {
// 捕获其他异常和错误
$errorMsg = $e->getMessage() ?: get_class($e);
$file = $e->getFile();
$line = $e->getLine();
\think\Log::write("get_history 异常: {$errorMsg} at {$file}:{$line}", 'error');
$this->error('异常:' . $errorMsg . ' [' . $file . ':' . $line . ']');
}
} else {
$this->error('获取失败');
}