From dfb09d5a8d228cfc45463aad531886202ddd93f5 Mon Sep 17 00:00:00 2001 From: shoopea Date: Thu, 30 Jan 2020 12:43:38 +0800 Subject: [PATCH] update craft all --- def.go | 7 +++++++ job.go | 4 ++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/def.go b/def.go index 83731f9..3f07e3b 100644 --- a/def.go +++ b/def.go @@ -500,6 +500,13 @@ type JobPayloadCraftItem struct { VaultJobID64 int64 `json:"vault_job_id"` } +type JobPayloadCraftAll struct { + MsgID64 int64 `json:"msg_id"` + ChatID64 int64 `json:"chat_id"` + UserID64 int64 `json:"user_id"` + VaultJobID64 int64 `json:"vault_job_id"` +} + type JobPayloadGetVault struct { Status int64 `json:"status"` JobCallbackID64 int64 `json:"job_callback_id"` diff --git a/job.go b/job.go index 9982709..42b6139 100644 --- a/job.go +++ b/job.go @@ -1657,8 +1657,8 @@ func jobGWithdraw(j Job) { } if len(stock) > 0 { - err := jobSetPayloadJSON(j.ID64, p) - logOnError(err, "jobGWithdraw : jobSetPayloadJSON") + err := setJobPayloadJSON(j.ID64, p) + logOnError(err, "jobGWithdraw : setJobPayloadJSON") setJobCallback(j.ID64, int64(bot.Me.ID), cacheObjSubType[`msg_job_gwithdraw_ack`])