1
mirror of https://github.com/CarmJos/UltraDepository.git synced 2024-09-19 19:55:45 +00:00

修复一些情况下日期不更新的问题。

This commit is contained in:
Carm Jos 2021-12-30 04:10:59 +08:00
parent a0c369b370
commit 090aa36e34

View File

@ -60,6 +60,7 @@ public class UserData {
}
public @NotNull DepositoryItemData getItemData(@NotNull DepositoryItem itemType) {
checkoutDate();
return getDepositoryData(itemType.getDepository()).getItemData(itemType);
}
@ -70,7 +71,6 @@ public class UserData {
}
public @Nullable Integer getItemSold(@NotNull String depositoryID, @NotNull String typeID) {
checkoutDate();
DepositoryItemData data = getItemData(depositoryID, typeID);
if (data == null) return null;
return data.getSold();