From e4a079b88e01182b52c305393dca759772fc9518 Mon Sep 17 00:00:00 2001 From: ShikiSuen Date: Sat, 12 Oct 2024 00:36:44 +0800 Subject: [PATCH] GachaItemManager // Also fix itemID on refetching data. --- Model/GachaModel/GachaItemManager.swift | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Model/GachaModel/GachaItemManager.swift b/Model/GachaModel/GachaItemManager.swift index 36b6558e..97e09515 100644 --- a/Model/GachaModel/GachaItemManager.swift +++ b/Model/GachaModel/GachaItemManager.swift @@ -349,8 +349,9 @@ public class GachaModelManager { foundExistingRecords.removeFirst() } if let existingRecord = foundExistingRecords.first { - // 修复错误的时区资讯。 + // 修复错误的时区资讯,同时修复 itemID。 existingRecord.time = item.time + existingRecord.itemId = item.itemId isNew?(false) return false } else {