Fix horse race seed pool payouts

This commit is contained in:
2026-04-11 16:11:00 +08:00
parent cc1dd017ce
commit 44db0d7853
7 changed files with 103 additions and 21 deletions
@@ -93,10 +93,12 @@
@php
$params = $game->params ?? [];
$labels = gameParamLabels($game->game_key);
$paramKeys = array_values(array_unique(array_merge(array_keys($labels), array_keys($params))));
@endphp
<div class="grid grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-4">
@foreach ($params as $paramKey => $paramValue)
@foreach ($paramKeys as $paramKey)
@php $paramValue = $params[$paramKey] ?? ($labels[$paramKey]['default'] ?? '') @endphp
@php $meta = $labels[$paramKey] ?? ['label' => $paramKey, 'type' => 'number', 'unit' => ''] @endphp
<div>
<label class="block text-xs font-bold text-gray-600 mb-1">
@@ -618,6 +620,7 @@
'horse_count' => ['label' => '参赛马匹数', 'type' => 'number', 'unit' => '匹', 'min' => 2, 'max' => 8],
'min_bet' => ['label' => '最低押注', 'type' => 'number', 'unit' => '金币', 'min' => 1],
'max_bet' => ['label' => '最高押注', 'type' => 'number', 'unit' => '金币', 'min' => 1],
'seed_pool' => ['label' => '系统初始化资金池', 'type' => 'number', 'unit' => '金币', 'min' => 0],
'house_take_percent' => [
'label' => '庄家抽水',
'type' => 'number',
+2 -1
View File
@@ -136,7 +136,8 @@
return [
'投注范围 ' . number_format($p['min_bet'] ?? 100) . '' . number_format($p['max_bet'] ?? 100000) . ' 金币',
'每 ' . ($p['interval_minutes'] ?? 30) . ' 分钟一场,投注窗口 ' . ($p['bet_window_seconds'] ?? 90) . ' 秒',
'平台抽成 ' . ($p['house_take_percent'] ?? 5) . '%,剩余按得票比例派奖',
'系统初始化资金池 ' . number_format($p['seed_pool'] ?? 0) . ' 金币,连同玩家注池一起派奖',
'平台抽成 ' . ($p['house_take_percent'] ?? 5) . '%,中奖时按占比瓜分派奖池',
];
},
],