update insert msg shop main ack

This commit is contained in:
shoopea 2020-02-06 16:58:38 +08:00
parent 41744803e6
commit dc3503d505

6
sql.go
View File

@ -726,8 +726,8 @@ func insertMsgShopMainAck(m *ChatWarsMessageShopMainAck) error {
return errors.New("Message type mismatch")
}
stmt, err := db.Prepare(`INSERT INTO obj_msg_shop_main (obj_id, name, number, user, mana, mana_total, class, castle_id, fees, open)
VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?);`)
stmt, err := db.Prepare(`INSERT INTO obj_msg_shop_main (obj_id, name, number, user, mana, mana_total, class, castle_id, fees, guru, open)
VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?);`)
logOnError(err, "insertMsgShopMainAck : Prepare")
if err != nil {
return err
@ -741,7 +741,7 @@ func insertMsgShopMainAck(m *ChatWarsMessageShopMainAck) error {
open = 0
}
_, err = stmt.Exec(m.Msg.ObjID64, m.Name, m.ShopNumber, m.User, m.Mana, m.ManaTotal, m.Class, m.CastleID64, m.Fees, open)
_, err = stmt.Exec(m.Msg.ObjID64, m.Name, m.ShopNumber, m.User, m.Mana, m.ManaTotal, m.Class, m.CastleID64, m.Fees, m.Guru, open)
logOnError(err, "insertMsgShopMainAck Exec")
return nil