Renamed SQL table item_mall_transactions to prime_shop_transactions.
This commit is contained in:
parent
844d19955c
commit
de5f9fc41d
@ -1,4 +1,4 @@
|
||||
CREATE TABLE IF NOT EXISTS `item_mall_transactions` (
|
||||
CREATE TABLE IF NOT EXISTS `prime_shop_transactions` (
|
||||
`charId` INT UNSIGNED NOT NULL DEFAULT 0,
|
||||
`productId` INT NOT NULL DEFAULT 0,
|
||||
`quantity` INT NOT NULL DEFAULT 1,
|
@ -121,9 +121,9 @@ public class RequestBrBuyProduct implements IClientIncomingPacket
|
||||
player.sendPacket(new ExBrBuyProduct(ExBrBuyProduct.RESULT_OK));
|
||||
player.broadcastUserInfo();
|
||||
|
||||
// Save transaction info at SQL table item_mall_transactions
|
||||
// Save transaction info at SQL table prime_shop_transactions
|
||||
try (Connection con = DatabaseFactory.getConnection();
|
||||
PreparedStatement statement = con.prepareStatement("INSERT INTO item_mall_transactions (charId, productId, quantity) values (?,?,?)"))
|
||||
PreparedStatement statement = con.prepareStatement("INSERT INTO prime_shop_transactions (charId, productId, quantity) values (?,?,?)"))
|
||||
{
|
||||
statement.setLong(1, player.getObjectId());
|
||||
statement.setInt(2, product.getProductId());
|
||||
|
@ -42,7 +42,7 @@ public class ExBrRecentProductList implements IClientOutgoingPacket
|
||||
final int playerObj = player.getObjectId();
|
||||
|
||||
try (Connection con = DatabaseFactory.getConnection();
|
||||
PreparedStatement statement = con.prepareStatement("SELECT productId FROM item_mall_transactions WHERE charId=? ORDER BY transactionTime DESC"))
|
||||
PreparedStatement statement = con.prepareStatement("SELECT productId FROM prime_shop_transactions WHERE charId=? ORDER BY transactionTime DESC"))
|
||||
{
|
||||
statement.setInt(1, playerObj);
|
||||
try (ResultSet rset = statement.executeQuery())
|
||||
|
Loading…
Reference in New Issue
Block a user