This commit is contained in:
shoopea 2020-01-16 21:40:29 +08:00
parent 4bb256e11f
commit 5db50c1d33
2 changed files with 9 additions and 1 deletions

View File

@ -33,7 +33,7 @@ func loadClients() error {
copier.Copy(&cx, &c) copier.Copy(&cx, &c)
cx.Active = false cx.Active = false
clients[cx.TGUserID64] = &cx clients[cx.TGUserID64] = &cx
log.Printf("loadClients[%s] : %p\n", cx.Login, &cx) log.Printf("loadClients[%s] : done\n")
} }
muxClients.Unlock() muxClients.Unlock()

8
job.go
View File

@ -1587,6 +1587,14 @@ func jobGWithdraw(j Job) {
c.Encrypt(out, in) c.Encrypt(out, in)
ref := hex.EncodeToString(out) ref := hex.EncodeToString(out)
c := TGCommand{
Type: commandReplyMsg,
Text: fmt.Sprintf("/withdraw_%s", ref),
FromMsgID64: p.MsgID64,
FromChatID64: pChatID64,
}
TGCmdQueue <- c
log.Printf("jobGWithdraw[%d] : got all the info for ref %s\n", j.ID64, string(ref)) log.Printf("jobGWithdraw[%d] : got all the info for ref %s\n", j.ID64, string(ref))
} }