feat : 보스 전용채널 제거, 채널 5개로 변경, config.json 정리
This commit is contained in:
@@ -103,7 +103,7 @@ public class GameServer : ServerBase
|
||||
{
|
||||
AccTokenPacket accTokenPacket = Serializer.Deserialize<AccTokenPacket>(new ReadOnlyMemory<byte>(payload));
|
||||
string token = accTokenPacket.Token;
|
||||
string username = "";
|
||||
string? username = "";
|
||||
tokenHash.TryGetValue(token, out int hashKey);
|
||||
if (hashKey <= 1000)
|
||||
{
|
||||
@@ -122,7 +122,7 @@ public class GameServer : ServerBase
|
||||
{
|
||||
// 신규 연결: 웹서버에 JWT 검증 요청
|
||||
username = await RestApi.Instance.VerifyTokenAsync(token);
|
||||
if (username == null)
|
||||
if (username == null || username.Trim().Length <= 0)
|
||||
{
|
||||
Log.Warning("[Server] 토큰 검증 실패 - 연결 거부 PeerId={Id}", peer.Id);
|
||||
userUuidGenerator.Release(hashKey);
|
||||
@@ -1073,7 +1073,11 @@ public class GameServer : ServerBase
|
||||
List<string> userNames = new List<string>();
|
||||
foreach (int memberId in party.PartyMemberIds)
|
||||
{
|
||||
userNames.Add(channel.GetPlayer(memberId).Nickname);
|
||||
Player? memberPlayer = channel.GetPlayer(memberId);
|
||||
if (memberPlayer != null)
|
||||
{
|
||||
userNames.Add(memberPlayer.Nickname);
|
||||
}
|
||||
}
|
||||
|
||||
BossRaidResult? result = await RestApi.Instance.BossRaidAccesssAsync(userNames, 1);
|
||||
|
||||
Reference in New Issue
Block a user