fix unique

This commit is contained in:
shoopea 2020-01-21 15:41:36 +08:00
parent 1c28877a71
commit 9b5fac7dde

3
job.go
View File

@ -1530,6 +1530,7 @@ func jobGWithdraw(j Job) {
b2, _ := json.Marshal(p2) b2, _ := json.Marshal(p2)
createJob(cacheObjSubType[`job_msg_del`], objJobPriority, j.UserID64, 0, time.Now().UTC(), b2) createJob(cacheObjSubType[`job_msg_del`], objJobPriority, j.UserID64, 0, time.Now().UTC(), b2)
if isUnique {
for k, req := range p.Items { for k, req := range p.Items {
if req.Inspect { if req.Inspect {
p2 = JobPayloadMsgDel{ p2 = JobPayloadMsgDel{
@ -1553,7 +1554,7 @@ func jobGWithdraw(j Job) {
return return
} }
} }
}
} }
if id == cacheObjSubType[`msg_msg_job_gwithdraw_ack`] { if id == cacheObjSubType[`msg_msg_job_gwithdraw_ack`] {