insert msg shop main ack
This commit is contained in:
parent
9aab1a3bbf
commit
917d8e4dec
8
sql.go
8
sql.go
@ -726,10 +726,7 @@ func insertMsgShopMainAck(m *ChatWarsMessageShopMainAck) error {
|
||||
return errors.New("Message type mismatch")
|
||||
}
|
||||
|
||||
return nil
|
||||
/*
|
||||
|
||||
stmt, err := db.Prepare(`INSERT INTO obj_msg_shop_main (obj_id, name, quantity, user, mana, mana_total, class, castle_id, fees, open)
|
||||
stmt, err := db.Prepare(`INSERT INTO obj_msg_shop_main (obj_id, name, number, user, mana, mana_total, class, castle_id, fees, open)
|
||||
VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?);`)
|
||||
logOnError(err, "insertMsgShopMainAck : Prepare")
|
||||
if err != nil {
|
||||
@ -744,12 +741,11 @@ func insertMsgShopMainAck(m *ChatWarsMessageShopMainAck) error {
|
||||
open = 0
|
||||
}
|
||||
|
||||
_, err = stmt.Exec(m.Msg.ID64, t.ItemID64, t.Quantity, t.Exp, t.Date)
|
||||
_, err = stmt.Exec(m.Msg.ID64, m.Name, m.ShopNumber, m.User, m.Mana, m.ManaTotal, m.Class, m.CastleID64, m.Fees, open)
|
||||
logOnError(err, "insertMsgShopMainAck Exec")
|
||||
|
||||
return nil
|
||||
|
||||
*/
|
||||
}
|
||||
|
||||
func insertMsgAuctionAnnounce(m *ChatWarsMessageAuctionAnnounce) error {
|
||||
|
Loading…
Reference in New Issue
Block a user