Fix horse race seed pool payouts
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user