修复getInventoryBackups/getInventoryBackupById查错表:inventory_backups→inv_backup_auto,导致自动备份数据查不到
This commit is contained in:
@@ -1561,7 +1561,7 @@ public class DatabaseManager {
|
|||||||
PreparedStatement ps =
|
PreparedStatement ps =
|
||||||
db.prepareStatement(
|
db.prepareStatement(
|
||||||
"SELECT id, save_time "
|
"SELECT id, save_time "
|
||||||
+ "FROM inventory_backups "
|
+ "FROM inv_backup_auto "
|
||||||
+ "WHERE player_name=? "
|
+ "WHERE player_name=? "
|
||||||
+ "ORDER BY save_time DESC "
|
+ "ORDER BY save_time DESC "
|
||||||
+ "LIMIT ?");
|
+ "LIMIT ?");
|
||||||
@@ -1599,7 +1599,7 @@ public class DatabaseManager {
|
|||||||
+ "extra_b64, "
|
+ "extra_b64, "
|
||||||
+ "level, "
|
+ "level, "
|
||||||
+ "experience "
|
+ "experience "
|
||||||
+ "FROM inventory_backups "
|
+ "FROM inv_backup_auto "
|
||||||
+ "WHERE id=?");
|
+ "WHERE id=?");
|
||||||
ps.setInt(1, backupId);
|
ps.setInt(1, backupId);
|
||||||
ResultSet rs = ps.executeQuery();
|
ResultSet rs = ps.executeQuery();
|
||||||
|
|||||||
Reference in New Issue
Block a user