test(upserver): 归档存档迁移与玩法闭环回归工具

This commit is contained in:
Liubing\LB
2026-09-28 18:16:14 +08:00
parent c4ae02def9
commit a6f5e107f8
232 changed files with 12903 additions and 0 deletions

View File

@@ -0,0 +1,33 @@
--- Client/Assets/Scripts/Services/AggUserService.cs (reviewed baseline)
+++ Client/Assets/Scripts/Services/AggUserService.cs
@@ -56,6 +56,15 @@
public override async Task<ELoginStep> Login(Action<int> progress, bool tryLoginByToken = true)
{
+#if UNITY_EDITOR && !SERVICE_HOST
+ if(game.PlayerDataStorage.PlayerKVGameplayLoop.Enabled)
+ {
+ CustomId=game.PlayerDataStorage.PlayerKVGameplayLoop.Permit.PlayerId;
+ OnInitData+=InitData;
+ try { return await LoginWithBackend(progress,"kv-loop"); }
+ finally { OnInitData-=InitData; }
+ }
+#endif
var backend=CaptureSaveBackend();
if(RejectSaveBackend(backend)) return ELoginStep.Api;
var generation = logoutGeneration;
@@ -224,6 +233,10 @@
}
private void InitData(IDictionary<string, string> data)
{
+#if UNITY_EDITOR && !SERVICE_HOST
+ // Editor loop has no channel SDK login. M31 already replaced account URLs and linked flags.
+ if(PlayerDataStorage.PlayerKVGameplayLoop.Enabled) return;
+#endif
if (data.TryGetValue(EAccoutType.hwGoogle.ToString(), out var google) && google == "1")
{
TYSdkFacade.TYAccountInfo.linkedAccout.Add(EAccoutType.hwGoogle);