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,9 @@
using asap.core;
if (!UnityEngine.Application.isPlaying) return "Refused: not playing";
var user = GContext.container.Resolve<game.IUserService>();
if (!user.IsAuthorized || (user.ApiPlayerId != "101" && user.ApiPlayerId != "102") || UnityEngine.SceneManagement.SceneManager.GetActiveScene().name != "FishingStage") return "Refused: test account not in FishingStage";
var player = GContext.container.Resolve<GameCore.PlayerData>();
var piggy = GContext.container.Resolve<PiggyBankPackData>();
var bargain = GContext.container.Resolve<BargainPackData>();
var battle = GContext.container.Resolve<BattlePassDataProvider>();
return $"ApiPlayerId={user.ApiPlayerId}; LegacyStorageId={user.UserId}; Level={(int)player.lv}; Gold={(ulong)player.gold}; Diamond={(int)player.diamond}; Rod={(int)player.equipRodID}; PiggyWithinEvent={piggy.IsWithinEventTime}; BargainWithinEvent={bargain.IsWithinEventTime}; BattlePassId={battle.Data.BattlePassRecord.ID}; BattlePassActive={battle.IsActivating}";