mirror of
https://github.com/CarmJos/UltraDepository.git
synced 2026-06-04 08:38:25 +08:00
修复一些情况下日期不更新的问题。
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user