From 5db50c1d33966eb0616d87fbdc889d7ca9767c52 Mon Sep 17 00:00:00 2001 From: shoopea Date: Thu, 16 Jan 2020 21:40:29 +0800 Subject: [PATCH] test --- client.go | 2 +- job.go | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/client.go b/client.go index f0e0092..0416eff 100644 --- a/client.go +++ b/client.go @@ -33,7 +33,7 @@ func loadClients() error { copier.Copy(&cx, &c) cx.Active = false clients[cx.TGUserID64] = &cx - log.Printf("loadClients[%s] : %p\n", cx.Login, &cx) + log.Printf("loadClients[%s] : done\n") } muxClients.Unlock() diff --git a/job.go b/job.go index f7815a3..0799c64 100644 --- a/job.go +++ b/job.go @@ -1587,6 +1587,14 @@ func jobGWithdraw(j Job) { c.Encrypt(out, in) 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)) }