test
This commit is contained in:
parent
da6c2cb1f2
commit
d04287d63b
2
bot.go
2
bot.go
@ -77,7 +77,7 @@ func botMsgRescan(m *tb.Message) (string, error) {
|
|||||||
r := regexp.MustCompile("^[0-9]+$")
|
r := regexp.MustCompile("^[0-9]+$")
|
||||||
if r.MatchString(m.Payload) {
|
if r.MatchString(m.Payload) {
|
||||||
p := JobPayloadRescanMsg{
|
p := JobPayloadRescanMsg{
|
||||||
Query: fmt.Sprintf(q, "SELECT o.id from obj o where o.id = %s and o.obj_type_id = %d and o.obj_sub_type_id = %d;", m.Payload, objTypeMessage, objSubTypeMessageUnknown),
|
Query: fmt.Sprintf("SELECT o.id from obj o where o.id = %s and o.obj_type_id = %d and o.obj_sub_type_id = %d;", m.Payload, objTypeMessage, objSubTypeMessageUnknown),
|
||||||
}
|
}
|
||||||
b, _ := json.Marshal(p)
|
b, _ := json.Marshal(p)
|
||||||
log.Printf("botMsgRescan : json : %s\n", string(b))
|
log.Printf("botMsgRescan : json : %s\n", string(b))
|
||||||
|
Loading…
Reference in New Issue
Block a user