feat(upserver): 保存M2客户端KV迁移至本人统计写检查点

保存独立KV用户服务、固定会话存档与原业务接线,以及C3d资料缓存和C3e本人统计写。
保留原PF/AGG路线、业务公式和时序;榜单读取、好友资料、公告、匹配及首场景闸仍待完成。

验证:ServiceHost两条件各33组646断言;Unity CLI Loop编译0错误269警告。
包含相关方案、评审裁决、测试及状态文档。未操作服务器、正式账号或打包。
This commit is contained in:
Liubing\LB
2026-09-30 19:19:05 +08:00
parent 1c0cdf7a99
commit 6813da149a
511 changed files with 151858 additions and 2376 deletions

View File

@@ -1,4 +1,4 @@
using System;
using System;
using System.Collections.Generic;
using System.Linq;
using asap.core;
@@ -15,6 +15,8 @@ using UniRx;
public class EventPartnerData
{
readonly game.PlayerDataStorage.IPlayerSaveStore saveStore = GContext.container.Resolve<game.PlayerDataStorage.IPlayerSaveStore>();
private bool _lock = false, _whole = false;
private MetaData _data;
private readonly Tables _tables = GContext.container.Resolve<Tables>();
@@ -201,12 +203,13 @@ public class EventPartnerData
}
Debug.Log($"Cache Done");
}
var pfString = PlayFabMgr.Instance.GetLocalData(EventPartnerPlayfabData.Key);
var pfString = saveStore.Read(EventPartnerPlayfabData.Key).ValueOrThrow();
EventPartnerPlayfabData pfData = EventPartnerPlayfabData.FromString(pfString);
Debug.Log($"<color=#2d7cee>[EventPartner] Try get response in load data:</color>");
var detailRequest = new EventBuildDetailRequest() { eventId = e.ID };
var response = await GContext.container.Resolve<ICustomServerMgr>()
.EventPartnerRequest<EventBuildDetailResp>(DetailUrl, detailRequest);
if (!saveStore.IsCurrent) throw new System.OperationCanceledException();
if (response == null)
{
response = new EventBuildDetailResp();
@@ -1362,6 +1365,8 @@ public class EventPartnerData
public class EventPartnerPlayfabData
{
readonly game.PlayerDataStorage.IPlayerSaveStore saveStore = GContext.container.Resolve<game.PlayerDataStorage.IPlayerSaveStore>();
[JsonIgnore]
public const string Key = "EventPartnerData";
public int EventId { get; set; }
@@ -1374,7 +1379,7 @@ public class EventPartnerData
public void Save()
{
var s = JsonConvert.SerializeObject(this);
PlayFabMgr.Instance.UpdateUserDataValue("EventPartnerData", s);
saveStore.Write("EventPartnerData", s).RequireAccepted();
}
public static EventPartnerPlayfabData FromString(string s)