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,37 @@
--- Client/Assets/Scripts/UI/Rod/FishingRodPanel_Level.cs (reviewed baseline)
+++ Client/Assets/Scripts/UI/Rod/FishingRodPanel_Level.cs
@@ -228,7 +228,12 @@
fx_rodpanel_upgrade_change.SetActive(false);
}
+#if UNITY_EDITOR && !SERVICE_HOST
+ bool kvEquipInFlight;
+ async void OnClickEquip()
+#else
void OnClickEquip()
+#endif
{
if (data.config.ID == GContext.container.Resolve<PlayerData>().equipRodID || data.isLock)
{
@@ -239,6 +244,17 @@
ToastPanel.Show(LocalizationMgr.GetText("UI_ToastPanel_26"));
return;
}
+#if UNITY_EDITOR && !SERVICE_HOST
+ if(game.PlayerDataStorage.PlayerKVGameplayLoop.Enabled)
+ {
+ if(kvEquipInFlight) return;
+ kvEquipInFlight=true;
+ try { await GContext.container.Resolve<PlayerData>().SetEquipRodIDForKVLoopAsync(data.config.ID); }
+ catch(System.Exception e) { Debug.LogException(e); return; }
+ finally { kvEquipInFlight=false; }
+ }
+ else
+#endif
GContext.container.Resolve<PlayerData>().SetEquipRodID(data.config.ID);
btn_equip_go.gameObject.SetActive(false);
equipped.SetActive(true);