test gdeposit

This commit is contained in:
shoopea 2019-08-21 12:15:51 +08:00
parent 68f1ab23f5
commit 38afcbc367

5
job.go
View File

@ -715,7 +715,9 @@ func jobGDeposit(j Job) {
if p.Status == 0 { /* handle remaining resources to be stored */ if p.Status == 0 { /* handle remaining resources to be stored */
if len(p.ResObjID64) > 0 { if len(p.ResObjID64) > 0 {
obj, err := getObjItem(p.ResObjID64[0]) obj, err := getObjItem(p.ResObjID64[0])
if err != nil { logOnError(err, "jobGDeposit : getObjItem")
if err == nil {
p2 := JobPayloadGDeposit{ p2 := JobPayloadGDeposit{
MsgID64: p.MsgID64, MsgID64: p.MsgID64,
ChatID64: p.ChatID64, ChatID64: p.ChatID64,
@ -728,6 +730,7 @@ func jobGDeposit(j Job) {
clientSendCWMsg(p.ChatID64, fmt.Sprintf("/t_%s", obj.Code)) clientSendCWMsg(p.ChatID64, fmt.Sprintf("/t_%s", obj.Code))
logOnError(err, "jobGDeposit : createJobCallback") logOnError(err, "jobGDeposit : createJobCallback")
} }
p.ResObjID64 = p.ResObjID64[1:] p.ResObjID64 = p.ResObjID64[1:]
} }
if len(p.ResObjID64) > 0 { if len(p.ResObjID64) > 0 {