1.优化接口/api/game/lobbyInit,新增赔率参数

This commit is contained in:
2026-05-15 15:46:06 +08:00
parent 90ec085cd5
commit 575aa279bd
3 changed files with 53 additions and 13 deletions

View File

@@ -5,6 +5,7 @@ declare(strict_types=1);
namespace app\api\controller;
use app\common\library\game\BetChips;
use app\common\library\game\StreakWinReward;
use app\common\library\game\ZiHuaDictionary;
use app\common\model\BetOrder;
use app\common\model\GameRecord;
@@ -67,6 +68,7 @@ class Game extends MobileBase
BetChips::lobbyChipsPayload()
),
'dictionary' => $items,
'streak_win_reward' => StreakWinReward::lobbyPayload(),
'user_snapshot' => [
'coin' => $user->coin,
'current_streak' => $user->current_streak ?? 0,