This commit is contained in:
shoopea 2019-05-04 17:18:20 +08:00
parent eb08faf245
commit bca3777f2e

2
sql.go
View File

@ -143,7 +143,7 @@ func putMsg(m ChatWarsMessage) error {
}
objId, err := res.LastInsertId()
stmt, err := db.Prepare(`INSERT INTO msg (obj_id, msg_id, chat_id, sender_user_id, date , text)
stmt, err := db.Prepare(`INSERT INTO obj_msg (obj_id, msg_id, chat_id, sender_user_id, date , text)
VALUES (?, ?, ?, ?, FROM_UNIXTIME(?), ?);`)
if err != nil {
return err