优化抽奖接口/api/game/playStart,新增消耗平台币use_coin(=0是为免费抽奖)

This commit is contained in:
2026-03-31 12:02:09 +08:00
parent afd6113927
commit d54a9c9281
2 changed files with 3 additions and 0 deletions

View File

@@ -485,6 +485,8 @@ class PlayStartLogic
$arr['reward_tier'] = ($isWin === 1 && $superWinCoin > 0) ? 'BIGWIN' : (string) ($tier ?? '');
// 记录完数据后返回当前玩家余额与抽奖次数
$arr['coin'] = $updated ? (float) $updated->coin : 0;
// 本局从玩家货币中扣除的金额:付费抽奖为 ante*UNIT_COST免费抽奖为 0与 paid_amount 一致)
$arr['use_coin'] = $paidAmount;
return $arr;
}