This commit is contained in:
shoopea 2019-05-08 18:39:33 +08:00
parent 74476a2cfb
commit fc4d8c0ff4

2
sql.go
View File

@ -185,7 +185,7 @@ func initDB() {
func putUnprocessedMsg(m ChatWarsMessage) (int64, error) {
res, err := db.Exec(`INSERT INTO obj (obj_type_id, obj_sub_type_id)
VALUES (3 , 1);`)
VALUES (` + strconv.Itoa(objTypeMessage) + `,` + strconv.Itoa(objSubTypeMessageUnknown) + `);`)
if err != nil {
return 0, err
}