This commit is contained in:
shoopea 2020-01-27 12:39:32 +08:00
parent 1df109712c
commit fc87f5675d
2 changed files with 2 additions and 0 deletions

1
bot.go
View File

@ -729,6 +729,7 @@ func botCraftItem(m *ChatWarsMessage) {
logOnError(err, "botCraftItem : getCraftItemID")
p.Quantity, err = strconv.ParseInt(r.ReplaceAllString(m.Text, "${Quantity}"), 10, 64)
logOnError(err, "botCraftItem : ParseInt")
if err != nil {
c := TGCommand{
Type: commandReplyMsg,

1
def.go
View File

@ -494,6 +494,7 @@ type JobPayloadCraftItem struct {
ChatID64 int64 `json:"chat_id"`
UserID64 int64 `json:"user_id"`
ObjItemID64 int64 `json:"item_id"`
Quantity int64 `json:"quantity"`
Status int64 `json:"status"`
VaultJobID64 int64 `json:"vault_job_id"`
}