This commit is contained in:
shoopea 2020-01-23 14:10:58 +08:00
parent 8abb3bc2d2
commit ab88067291

20
job.go
View File

@ -1520,21 +1520,17 @@ func jobGWithdraw(j Job) {
}
}
m, err := getObjMsg(j.Trigger)
logOnError(err, "jobGWithdraw : getObjMsg")
if err == nil {
p.CleanupMsg = append(p.CleanupMsg, *m)
}
p.CleanupMsg = append(p.CleanupMsg, *m)
if isUnique {
for _, req := range p.Items {
if req.Inspect {
p2 = JobPayloadMsgDel{
p2 := JobPayloadMsgDel{
MsgTypeID64: cacheObjSubType[`msg_g_inspect_req`],
Delay: (10 * time.Second),
ObjMsgID64: 0,
}
b2, _ = json.Marshal(p2)
b2, _ := json.Marshal(p2)
createJobCallback(cacheObjSubType[`job_msg_del`], j.UserID64, p2.MsgTypeID64, b2, time.Minute)
p.Inspecting = req.Code
@ -1568,20 +1564,16 @@ func jobGWithdraw(j Job) {
}
p.Inspecting = ``
m, err := getObjMsg(j.Trigger)
logOnError(err, "jobGWithdraw : getObjMsg")
if err == nil {
p.CleanupMsg = append(p.CleanupMsg, *m)
}
p.CleanupMsg = append(p.CleanupMsg, *m)
for _, req := range p.Items {
if req.Inspect {
p2 = JobPayloadMsgDel{
p2 := JobPayloadMsgDel{
MsgTypeID64: cacheObjSubType[`msg_g_inspect_req`],
Delay: (10 * time.Second),
ObjMsgID64: 0,
}
b2, _ = json.Marshal(p2)
b2, _ := json.Marshal(p2)
createJobCallback(cacheObjSubType[`job_msg_del`], j.UserID64, p2.MsgTypeID64, b2, time.Minute)
p.Inspecting = req.Code