From ac827d451fc90d413b2fa45081756cac1b8094ab Mon Sep 17 00:00:00 2001 From: shoopea Date: Sun, 5 Jan 2020 15:27:07 +0800 Subject: [PATCH] test --- bot.go | 2 ++ job.go | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/bot.go b/bot.go index 4ab871d..ff912c2 100644 --- a/bot.go +++ b/bot.go @@ -960,6 +960,8 @@ func botGWithdraw(m *tb.Message) { FromChatID64: m.Chat.ID, } TGCmdQueue <- c + } else { + log.Printf("botGWithdraw : %s\n", string(b)) } } else { diff --git a/job.go b/job.go index 437b60d..6074886 100644 --- a/job.go +++ b/job.go @@ -1298,6 +1298,10 @@ func jobGWithdraw(j Job) { } } } + + b, _ := json.Marshal(p) + log.Printf("jobGWithdraw : %s\n", string(b)) + if p.Status < 64 { if (p.Status & 1) == 1 { log.Printf("jobGWithdraw : Requesting res.\n")