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

4
sql.go
View File

@ -143,8 +143,8 @@ 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)
VALUES (?, ?, ?, ?, FROM_UNIXTIME(?), ?);`)
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
}