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