fix g withdraw

This commit is contained in:
shoopea 2020-01-23 14:13:49 +08:00
parent ab88067291
commit c6ef1a79d5

4
job.go
View File

@ -1607,12 +1607,12 @@ func jobGWithdraw(j Job) {
for _, req := range p.Items { for _, req := range p.Items {
if req.Inspect { if req.Inspect {
p2 = JobPayloadMsgDel{ p2 := JobPayloadMsgDel{
MsgTypeID64: cacheObjSubType[`msg_g_inspect_req`], MsgTypeID64: cacheObjSubType[`msg_g_inspect_req`],
Delay: (10 * time.Second), Delay: (10 * time.Second),
ObjMsgID64: 0, ObjMsgID64: 0,
} }
b2, _ = json.Marshal(p2) b2, _ := json.Marshal(p2)
createJobCallback(cacheObjSubType[`job_msg_del`], j.UserID64, p2.MsgTypeID64, b2, time.Minute) createJobCallback(cacheObjSubType[`job_msg_del`], j.UserID64, p2.MsgTypeID64, b2, time.Minute)
p.Inspecting = req.Code p.Inspecting = req.Code