update g_withdraw

This commit is contained in:
shoopea 2019-10-09 10:12:19 +08:00
parent f4edf46916
commit 1cb80243d8

13
bot.go
View File

@ -735,29 +735,26 @@ func botGWithdraw(m *tb.Message) {
b, _ := json.Marshal(p) b, _ := json.Marshal(p)
t := time.Now().UTC() t := time.Now().UTC()
_, err := createJob(objSubTypeJobGWithdraw, objJobPriority, int64(m.Chat.ID), 0, t, b) _, err := createJob(objSubTypeJobGWithdraw, objJobPriority, int64(m.Chat.ID), 0, t, b)
if err != nil {
}
if false {
c := TGCommand{ c := TGCommand{
Type: commandReplyMsg, Type: commandReplyMsg,
//Text: fmt.Sprintf("%s", err), Text: fmt.Sprintf("%s", err),
Text: "error",
FromMsgID64: int64(m.ID), FromMsgID64: int64(m.ID),
FromChatID64: m.Chat.ID, FromChatID64: m.Chat.ID,
} }
TGCmdQueue <- c TGCmdQueue <- c
}
} else { } else {
c := TGCommand{ c := TGCommand{
Type: commandReplyMsg, Type: commandReplyMsg,
Text: "Withdrawal started", Text: "Wrong format",
FromMsgID64: int64(m.ID), FromMsgID64: int64(m.ID),
FromChatID64: m.Chat.ID, FromChatID64: m.Chat.ID,
} }
TGCmdQueue <- c TGCmdQueue <- c
} }
//log.Printf("botGDepositAll : json : %s\n", string(b))
return return
} }