diff --git a/src/main/java/app/entities/db/DonateStat.java b/src/main/java/app/entities/db/DonateStat.java index e78025b..69040c9 100644 --- a/src/main/java/app/entities/db/DonateStat.java +++ b/src/main/java/app/entities/db/DonateStat.java @@ -28,7 +28,7 @@ public class DonateStat { this.id = (int) obj[0]; this.steam2 = String.valueOf(obj[1]); this.amount = (int) obj[2]; - this.giveMethod = (VipGiveMethod) obj[4]; + this.giveMethod = VipGiveMethod.values()[(int) obj[4]]; this.reserved = String.valueOf(obj[5]); this.utime = (int) obj[6]; }