refactor(kv): 整理存档接线并清理迁移冗余实现
This commit is contained in:
@@ -608,7 +608,7 @@ public class EventFishingDuelPanel : BasePanel
|
||||
void CreateMatchmakingTicket()
|
||||
{
|
||||
if (GContext.container.Resolve<IUserService>() is not PlayFabUserService &&
|
||||
GContext.container.Resolve<IUserService>() is not KVUserService)
|
||||
GContext.container.Resolve<IUserService>() is not KvUserService)
|
||||
{
|
||||
Debug.LogWarning("KV matchmaking service is not connected.");
|
||||
FDM.MachingEnd(null);
|
||||
@@ -654,7 +654,7 @@ public class EventFishingDuelPanel : BasePanel
|
||||
Debug.LogError("创建匹配请求失败: " + error);
|
||||
FDM.MachingEnd(null);
|
||||
};
|
||||
if (userService is KVUserService)
|
||||
if (userService is KvUserService)
|
||||
{
|
||||
RequestKVMatch("CreateMatchmakingTicket", new
|
||||
{
|
||||
@@ -733,7 +733,7 @@ public class EventFishingDuelPanel : BasePanel
|
||||
Debug.LogError("检查匹配状态失败: " + error);
|
||||
MachingEnd();
|
||||
};
|
||||
if (GContext.container.Resolve<IUserService>() is KVUserService)
|
||||
if (GContext.container.Resolve<IUserService>() is KvUserService)
|
||||
{
|
||||
RequestKVMatch("GetMatchmakingTicket", new
|
||||
{
|
||||
@@ -750,7 +750,7 @@ public class EventFishingDuelPanel : BasePanel
|
||||
void GetMatchDetails(string matchId)
|
||||
{
|
||||
if (GContext.container.Resolve<IUserService>() is not PlayFabUserService &&
|
||||
GContext.container.Resolve<IUserService>() is not KVUserService)
|
||||
GContext.container.Resolve<IUserService>() is not KvUserService)
|
||||
{
|
||||
Debug.LogWarning("KV matchmaking service is not connected.");
|
||||
FDM.MachingEnd(null);
|
||||
@@ -783,7 +783,7 @@ public class EventFishingDuelPanel : BasePanel
|
||||
for (int i = 0; i < result.Members.Count; i++)
|
||||
{
|
||||
MatchmakingPlayerWithTeamAssignment member = result.Members[i];
|
||||
if (member.Entity.Id != (userService is KVUserService ? userService.UserId : ((PlayFabUserService)userService).entityKey.Id))
|
||||
if (member.Entity.Id != (userService is KvUserService ? userService.UserId : ((PlayFabUserService)userService).entityKey.Id))
|
||||
{
|
||||
JObject dataObject = JObject.FromObject(result.Members[i].Attributes.DataObject);
|
||||
string[] tierArray = dataObject["Tier"].ToObject<string[]>();
|
||||
@@ -809,7 +809,7 @@ public class EventFishingDuelPanel : BasePanel
|
||||
Debug.LogError("获取匹配详情失败: " + error);
|
||||
MachingEnd();
|
||||
};
|
||||
if (GContext.container.Resolve<IUserService>() is KVUserService)
|
||||
if (GContext.container.Resolve<IUserService>() is KvUserService)
|
||||
{
|
||||
RequestKVMatch("GetMatch", new
|
||||
{
|
||||
@@ -862,7 +862,7 @@ public class EventFishingDuelPanel : BasePanel
|
||||
{
|
||||
Debug.LogError("取消匹配失败: " + error);
|
||||
};
|
||||
if (GContext.container.Resolve<IUserService>() is KVUserService)
|
||||
if (GContext.container.Resolve<IUserService>() is KvUserService)
|
||||
{
|
||||
RequestKVMatch("CancelMatchmakingTicket", new
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user