fix(core): harden settlement and wallet integration

This commit is contained in:
wchino
2026-07-22 01:40:37 +08:00
parent 150c3e7ebd
commit 35f6e46958
54 changed files with 2564 additions and 359 deletions

View File

@@ -38,6 +38,8 @@ final class EnsurePlayerApi
// 使用 attributes避免与 Laravel 内置 input 混淆
$request->attributes->set('lottery_player', $player);
// 广播私有频道授权使用 Request::user() 读取当前玩家。
$request->setUserResolver(static fn () => $player);
return $next($request);
}