feat(upserver): 保存M2客户端KV迁移至本人统计写检查点
保存独立KV用户服务、固定会话存档与原业务接线,以及C3d资料缓存和C3e本人统计写。 保留原PF/AGG路线、业务公式和时序;榜单读取、好友资料、公告、匹配及首场景闸仍待完成。 验证:ServiceHost两条件各33组646断言;Unity CLI Loop编译0错误269警告。 包含相关方案、评审裁决、测试及状态文档。未操作服务器、正式账号或打包。
This commit is contained in:
@@ -607,6 +607,12 @@ public class EventFishingDuelPanel : BasePanel
|
||||
}
|
||||
void CreateMatchmakingTicket()
|
||||
{
|
||||
if (GContext.container.Resolve<IUserService>() is not PlayFabUserService)
|
||||
{
|
||||
Debug.LogWarning("KV matchmaking service is not connected.");
|
||||
FDM.MachingEnd(null);
|
||||
return;
|
||||
}
|
||||
int MaxMatchTime = FDM.eventSoloConfig.MaxMatchTime;
|
||||
//可匹配段位列表,杯数,选择倍率,地图列表,随机种子seed,鱼卡等级
|
||||
List<int> matchTierList = FDM.eventSolomain.MatchTierList;
|
||||
@@ -631,8 +637,8 @@ public class EventFishingDuelPanel : BasePanel
|
||||
{
|
||||
Entity = new EntityKey
|
||||
{
|
||||
Id = userService.entityKey.Id,
|
||||
Type = userService.entityKey.Type
|
||||
Id = ((PlayFabUserService)userService).entityKey.Id,
|
||||
Type = ((PlayFabUserService)userService).entityKey.Type
|
||||
},
|
||||
Attributes = new MatchmakingPlayerAttributes
|
||||
{
|
||||
@@ -717,6 +723,12 @@ public class EventFishingDuelPanel : BasePanel
|
||||
}
|
||||
void GetMatchDetails(string matchId)
|
||||
{
|
||||
if (GContext.container.Resolve<IUserService>() is not PlayFabUserService)
|
||||
{
|
||||
Debug.LogWarning("KV matchmaking service is not connected.");
|
||||
FDM.MachingEnd(null);
|
||||
return;
|
||||
}
|
||||
var request = new PlayFab.MultiplayerModels.GetMatchRequest
|
||||
{
|
||||
MatchId = matchId,
|
||||
@@ -745,7 +757,7 @@ public class EventFishingDuelPanel : BasePanel
|
||||
for (int i = 0; i < result.Members.Count; i++)
|
||||
{
|
||||
MatchmakingPlayerWithTeamAssignment member = result.Members[i];
|
||||
if (member.Entity.Id != userService.entityKey.Id)
|
||||
if (member.Entity.Id != ((PlayFabUserService)userService).entityKey.Id)
|
||||
{
|
||||
JObject dataObject = JObject.FromObject(result.Members[i].Attributes.DataObject);
|
||||
string[] tierArray = dataObject["Tier"].ToObject<string[]>();
|
||||
|
||||
Reference in New Issue
Block a user