minor adjustment

This commit is contained in:
Lightczx
2024-03-04 15:38:17 +08:00
parent 8a2fa3c701
commit 44e7f7482c
2 changed files with 11 additions and 8 deletions

View File

@@ -44,15 +44,17 @@ internal readonly struct GachaItemSaveContext
public void SaveItems(GachaArchive archive)
{
if (ItemsToAdd.Count > 0)
if (ItemsToAdd.Count <= 0)
{
// 全量刷新
if (!IsLazy)
{
GachaLogDbService.RemoveNewerGachaItemRangeByArchiveIdQueryTypeAndEndId(archive.InnerId, QueryType, EndId);
}
GachaLogDbService.AddGachaItemRange(ItemsToAdd);
return;
}
// 全量刷新
if (!IsLazy)
{
GachaLogDbService.RemoveNewerGachaItemRangeByArchiveIdQueryTypeAndEndId(archive.InnerId, QueryType, EndId);
}
GachaLogDbService.AddGachaItemRange(ItemsToAdd);
}
}

View File

@@ -20,5 +20,6 @@ internal static class GachaLog
GachaType.Standard,
GachaType.ActivityAvatar,
GachaType.ActivityWeapon,
GachaType.ActivityCity,
]);
}