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) {
log.Printf("clientSendCWMsg : s : %s\n", s)
log.Printf("clientSendCWMsg : userID64 : %d\n", userID64)
c := TGCommand{
Type: commandSendMsg,
Text: s,

6
job.go
View File

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