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

@@ -1,7 +1,10 @@
<?php
use App\Models\Player;
use Illuminate\Support\Facades\Broadcast;
Broadcast::channel('App.Models.User.{id}', function ($user, $id) {
return (int) $user->id === (int) $id;
});
Broadcast::channel(
'player.{playerId}',
static fn (Player $player, string $playerId): bool => ctype_digit($playerId)
&& (string) $player->getKey() === $playerId,
);