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,27 @@
--- Client/Assets/Scripts/Stages/QuitAct.cs (reviewed baseline)
+++ Client/Assets/Scripts/Stages/QuitAct.cs
@@ -34,6 +34,9 @@
public override async Task<bool> StartAsync()
{
+#if UNITY_EDITOR && !SERVICE_HOST
+ if(game.PlayerDataStorage.PlayerKVGameplayLoop.Enabled) _=game.PlayerDataStorage.PlayerKVGameplayLoop.CloseAsync();
+#endif
if(userService is PlayFabUserService closingKVUser) _=closingKVUser.CloseKVForValidationAsync();
// Invalidate identity before any await can allow old login/HTTP callbacks to resume.
if (QuitStage.Logout)
@@ -51,6 +54,10 @@
catch (System.Exception ex) { Debug.LogException(ex); }
// Observation is bounded; the process registry still owns any unfinished close.
+#if UNITY_EDITOR && !SERVICE_HOST
+ if(game.PlayerDataStorage.PlayerKVGameplayLoop.Enabled) await PlayerDataStorage.PlayerKVShutdownRegistry.Process.ObserveAsync(5000);
+ else
+#endif
if(userService is PlayFabUserService kvUser) await kvUser.ObserveKVQuitAsync();
adsService.Release();