update craft all

This commit is contained in:
shoopea 2020-01-30 12:43:38 +08:00
parent 75bdda96fa
commit dfb09d5a8d
2 changed files with 9 additions and 2 deletions

7
def.go
View File

@ -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"`

4
job.go
View File

@ -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`])