fix(core): harden settlement and wallet integration
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user