客户端rsa,冗余清理,bug修复,安卓build问题

This commit is contained in:
FloatGaming
2026-07-14 01:43:49 +08:00
parent fd22501f71
commit f8985d91d2
682 changed files with 4595 additions and 11216 deletions
@@ -6,6 +6,7 @@ public static class RecentPlayHistoryStore
private const string Category = "recent_play_history";
private const string Key = "runs_v1";
private const int MaxRecordCount = 100;
private const string RecoverySlotKey = "recent_play_history_runs_v1";
public static IReadOnlyList<RecentPlayRecord> GetRecords()
{
@@ -32,11 +33,13 @@ public static class RecentPlayHistoryStore
}
SecureSaveVault.SaveJson(Category, Key, payload);
LocalRecoveryMirror.SaveJson(RecoverySlotKey, payload);
}
public static void Clear()
{
SecureSaveVault.Delete(Category, Key);
LocalRecoveryMirror.DeleteSlot(RecoverySlotKey);
}
private static RecentPlayHistoryPayload LoadPayload()
@@ -44,7 +47,14 @@ public static class RecentPlayHistoryStore
RecentPlayHistoryPayload payload;
if (!SecureSaveVault.TryLoadJson(Category, Key, out payload) || payload == null)
{
payload = new RecentPlayHistoryPayload();
if (!LocalRecoveryMirror.TryLoadJson(RecoverySlotKey, out payload) || payload == null)
{
payload = new RecentPlayHistoryPayload();
}
else
{
SecureSaveVault.SaveJson(Category, Key, payload);
}
}
if (payload.records == null)