This commit is contained in:
shoopea 2019-05-31 09:16:40 +08:00
parent 26a65fb618
commit 82999d9310
2 changed files with 1 additions and 7 deletions

View File

@ -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
View File

@ -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)
} }