fix(core): harden settlement and wallet integration
This commit is contained in:
@@ -2,8 +2,8 @@
|
||||
|
||||
namespace App\Events;
|
||||
|
||||
use Illuminate\Broadcasting\Channel;
|
||||
use Illuminate\Queue\SerializesModels;
|
||||
use Illuminate\Broadcasting\PrivateChannel;
|
||||
use Illuminate\Foundation\Events\Dispatchable;
|
||||
use Illuminate\Broadcasting\InteractsWithSockets;
|
||||
use Illuminate\Contracts\Broadcasting\ShouldBroadcast;
|
||||
@@ -53,11 +53,11 @@ final class BalanceUpdateBroadcast implements ShouldBroadcast
|
||||
/**
|
||||
* 使用私有频道,只有指定玩家能收到自己的余额变动。
|
||||
*
|
||||
* @return array<int, Channel>
|
||||
* @return array<int, PrivateChannel>
|
||||
*/
|
||||
public function broadcastOn(): array
|
||||
{
|
||||
return [new Channel('player.'.$this->playerId)];
|
||||
return [new PrivateChannel('player.'.$this->playerId)];
|
||||
}
|
||||
|
||||
public function broadcastAs(): string
|
||||
|
||||
Reference in New Issue
Block a user