mirror of
https://github.com/CarmJos/UltraDepository.git
synced 2026-06-04 16:48:21 +08:00
修复一些情况下日期不更新的问题。
This commit is contained in:
@@ -60,6 +60,7 @@ public class UserData {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public @NotNull DepositoryItemData getItemData(@NotNull DepositoryItem itemType) {
|
public @NotNull DepositoryItemData getItemData(@NotNull DepositoryItem itemType) {
|
||||||
|
checkoutDate();
|
||||||
return getDepositoryData(itemType.getDepository()).getItemData(itemType);
|
return getDepositoryData(itemType.getDepository()).getItemData(itemType);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -70,7 +71,6 @@ public class UserData {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public @Nullable Integer getItemSold(@NotNull String depositoryID, @NotNull String typeID) {
|
public @Nullable Integer getItemSold(@NotNull String depositoryID, @NotNull String typeID) {
|
||||||
checkoutDate();
|
|
||||||
DepositoryItemData data = getItemData(depositoryID, typeID);
|
DepositoryItemData data = getItemData(depositoryID, typeID);
|
||||||
if (data == null) return null;
|
if (data == null) return null;
|
||||||
return data.getSold();
|
return data.getSold();
|
||||||
|
|||||||
Reference in New Issue
Block a user