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

@@ -63,11 +63,10 @@ namespace game
string DisplayName { get; }
string AvatarUrl { get; }
Dictionary<string, string> EAccoutUrl { get; }
EntityKey entityKey { get; }
Task<string> UpdateAvatarUrl(string url);
string UserId { get; }
string ApiPlayerId { get; }
string CustomId { get; }
string CustomId { get; set; }
uint InternalId { get; }
string ContinentCode { get; }
//string CountryCode { get; }
@@ -99,7 +98,7 @@ namespace game
void UpdateProfileLv();
}
public partial class PlayFabUserService : IUserService
public partial class PlayFabUserService : IUserService, PlayerDataStorage.IKVUserLoadReceiver, PlayerDataStorage.IKVUserLifecycle
{
[Inject]
public IConfig config { get; set; }
@@ -143,7 +142,7 @@ namespace game
const string MMTestSubKey = "MMFailParam";
public string GetDefaultName(string id)
{
return $"Angler#{id[0..5]}";
return "Angler#" + (string.IsNullOrEmpty(id) ? string.Empty : id.Substring(0, Math.Min(5, id.Length)));
}
public PlayFabUserService() : this(null) { }
@@ -180,7 +179,9 @@ namespace game
if (generation != logoutGeneration || requestedId != CustomId) return ELoginStep.Api;
if (!long.TryParse(requestedId, System.Globalization.NumberStyles.None,
System.Globalization.CultureInfo.InvariantCulture, out var numericId) || numericId <= 0)
{
return ELoginStep.Api;
}
return await LoginCore(progress, generation);
}
finally { loginGate.Release(); }