diff --git a/def.go b/def.go index 4c671fe..2236fb1 100644 --- a/def.go +++ b/def.go @@ -208,7 +208,7 @@ type BotMsg struct { type Job struct { ID64 int64 JobTypeID int32 - Status int32 + Trigger int64 UserID64 int64 Payload []byte } diff --git a/job.go b/job.go index 058dd02..81d67d4 100644 --- a/job.go +++ b/job.go @@ -719,7 +719,7 @@ func jobGDeposit(j Job) { p2 := JobPayloadGDeposit{ MsgID64: p.MsgID64, ChatID64: p.ChatID64, - ResObjID64: [1]int64{obj.ObjID64}, + ResObjID64: []int64{obj.ObjID64}, Status: 1, } err = createJobCallback(objSubTypeJobGDeposit, j.UserID64, objSubTypeMessageOrderbookAck, p2) diff --git a/obj.go b/obj.go index e3f089e..a0f5cc7 100644 --- a/obj.go +++ b/obj.go @@ -707,7 +707,7 @@ func getObjItem(objItemID64 int64) (*ChatWarsItem, error) { defer muxObjItem.Unlock() if obj, ok := cacheObjItemId[objItemID64]; ok { //log.Printf("Matching item name %s with %s.\n", name, obj.Name) - return obj, nil + return &obj, nil } else { return nil, errors.New("Item not found.") }