test
This commit is contained in:
parent
26a65fb618
commit
82999d9310
@ -6,8 +6,6 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
func clientSendCWMsg(userID64 int64, s string) {
|
func clientSendCWMsg(userID64 int64, s string) {
|
||||||
log.Printf("clientSendCWMsg : s : %s\n", s)
|
|
||||||
log.Printf("clientSendCWMsg : userID64 : %d\n", userID64)
|
|
||||||
c := TGCommand{
|
c := TGCommand{
|
||||||
Type: commandSendMsg,
|
Type: commandSendMsg,
|
||||||
Text: s,
|
Text: s,
|
||||||
|
6
job.go
6
job.go
@ -3,7 +3,6 @@ package main
|
|||||||
import (
|
import (
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
"fmt"
|
"fmt"
|
||||||
"log"
|
|
||||||
"strconv"
|
"strconv"
|
||||||
"time"
|
"time"
|
||||||
)
|
)
|
||||||
@ -358,10 +357,7 @@ func jobMsgClient(j Job) {
|
|||||||
err = json.Unmarshal(j.Payload, &p)
|
err = json.Unmarshal(j.Payload, &p)
|
||||||
logOnError(err, "jobMsgClient : Unmarshal payload")
|
logOnError(err, "jobMsgClient : Unmarshal payload")
|
||||||
|
|
||||||
log.Printf("jobMsgClient : Msg : %s\n", p.Msg)
|
if err == nil {
|
||||||
log.Printf("jobMsgClient : UserID64 : %d\n", j.UserID64)
|
|
||||||
|
|
||||||
if err != nil {
|
|
||||||
clientSendCWMsg(j.UserID64, p.Msg)
|
clientSendCWMsg(j.UserID64, p.Msg)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user