feat: 更新玩法配置管理,简化字段并增强功能

- 将玩法相关的显示名称字段统一为 `display_name`,移除多语言字段。
- 在 `PlayTypePatchController` 中新增即时切换玩法开关的功能,并推送大厅更新。
- 优化多个控制器和服务中的权限检查与数据处理逻辑,提升代码可读性与维护性。
This commit is contained in:
2026-05-25 14:34:24 +08:00
parent 270d2e9af1
commit e27a00f260
74 changed files with 4469 additions and 280 deletions

View File

@@ -31,6 +31,17 @@ final class DrawResultViewService
* consolation: array<int, string>
* }
*/
/** 已发布批次的头奖 4D 号码;未发布或缺失时返回空字符串。 */
public function firstPrizeNumber4dForDraw(Draw $draw): string
{
$summary = $this->summarizeDraw($draw);
if ($summary === null) {
return '';
}
return (string) ($summary['results']['1st'] ?? '');
}
public function numbersFromItems(Collection $items): array
{
$byType = [