This commit is contained in:
shoopea 2019-05-10 21:58:56 +08:00
parent 364f541561
commit 194474df03
2 changed files with 3 additions and 1 deletions

2
bot.go
View File

@ -1,9 +1,11 @@
package main
import (
"encoding/json"
"fmt"
tb "gopkg.in/tucnak/telebot.v2"
"regexp"
"strconv"
"time"
)

2
sql.go
View File

@ -1326,7 +1326,7 @@ func insertMsgAuctionAnnounce(m *ChatWarsMessageAuctionAnnounce) error {
func createJob(job_type_id int32, priority int32, schedule time.Time, payload []byte) error {
res, err := db.Exec(`INSERT INTO obj (obj_type_id, obj_sub_type_id)
VALUES (` + strconv.Itoa(objTypeJob) + `,` + strconv.Itoa(job_type_id) + `);`)
VALUES (` + strconv.Itoa(int(objTypeJob)) + `,` + strconv.Itoa(job_type_id) + `);`)
logOnError(err, "createJob : insert obj")
if err != nil {
return err