From b866c92bd520d00070a2eab39f836c2085606ea0 Mon Sep 17 00:00:00 2001 From: shoopea Date: Thu, 16 Jan 2020 23:26:25 +0800 Subject: [PATCH] test --- bot.go | 2 +- def.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bot.go b/bot.go index 8e006ce..7031183 100644 --- a/bot.go +++ b/bot.go @@ -966,7 +966,7 @@ func botGWithdraw(m *tb.Message) { p := JobPayloadGWithdraw{ MsgID64: int64(m.ID), ChatID64: m.Chat.ID, - UserID64: int64(m.Sender.ID), + User: m.Sender.Username, Status: 0, Validated: false, } diff --git a/def.go b/def.go index ca36c96..5b4751f 100644 --- a/def.go +++ b/def.go @@ -408,7 +408,7 @@ type JobPayloadGWithdrawItem struct { type JobPayloadGWithdraw struct { MsgID64 int64 `json:"msg_id"` ChatID64 int64 `json:"chat_id"` - UserID64 int64 `json:"user_id"` + User string `json:"user"` Items []JobPayloadGWithdrawItem `json:"items"` Status int64 `json:"status"` CleanupMsg []ChatWarsMessage `json:"cleanup_msg"`