客户端rsa,冗余清理,bug修复,安卓build问题
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user