second gdeposit review

This commit is contained in:
shoopea 2019-08-21 11:54:44 +08:00
parent 68935f7132
commit 7e20409fde

6
job.go
View File

@ -722,14 +722,16 @@ func jobGDeposit(j Job) {
ResObjID64: []int64{obj.ObjID64},
Status: 1,
}
err = createJobCallback(objSubTypeJobGDeposit, j.UserID64, objSubTypeMessageOrderbookAck, p2)
b2, _ := json.Marshal(&p2)
err = createJobCallback(objSubTypeJobGDeposit, j.UserID64, objSubTypeMessageOrderbookAck, b2)
clientSendCWMsg(p.ChatID64, fmt.Sprintf("/t_%s", obj.Code))
logOnError(err, "jobGDeposit : createJobCallback")
}
p.ResObjID64 = p.ResObjID64[1:]
}
if len(p.ResObjID64) > 0 {
err = createJobCallback(objSubTypeJobGDeposit, j.UserID64, objSubTypeMessageOrderbookAck, p)
b, _ := json.Marshal(&p)
err = createJobCallback(objSubTypeJobGDeposit, j.UserID64, objSubTypeMessageOrderbookAck, b)
logOnError(err, "jobGDeposit : createJobCallback")
}
return