This commit is contained in:
shoopea 2020-01-26 22:24:09 +08:00
parent beea856cef
commit 2fac84340c

33
job.go
View File

@ -1967,37 +1967,16 @@ func jobGetVault(j Job) {
p.CleanupMsg = append(p.CleanupMsg, *m)
case cacheObjSubType[`msg_gstock_oth_req`]:
log.Printf("jobGetVault[%d] : Receiving other.\n", j.ID64)
p.CleanupMsg = append(p.CleanupMsg, *m)
setJobPayloadJSON(j.ID64, p)
rescheduleJob(j.ID64, 0, time.Unix(maxUnixTimestamp, 0).UTC())
return
fallthrough
case cacheObjSubType[`msg_gstock_res_req`]:
log.Printf("jobGetVault[%d] : Receiving res.\n", j.ID64)
p.CleanupMsg = append(p.CleanupMsg, *m)
setJobPayloadJSON(j.ID64, p)
rescheduleJob(j.ID64, 0, time.Unix(maxUnixTimestamp, 0).UTC())
return
fallthrough
case cacheObjSubType[`msg_gstock_alch_req`]:
log.Printf("jobGetVault[%d] : Receiving alch.\n", j.ID64)
p.CleanupMsg = append(p.CleanupMsg, *m)
setJobPayloadJSON(j.ID64, p)
rescheduleJob(j.ID64, 0, time.Unix(maxUnixTimestamp, 0).UTC())
return
fallthrough
case cacheObjSubType[`msg_gstock_misc_req`]:
log.Printf("jobGetVault[%d] : Receiving misc.\n", j.ID64)
p.CleanupMsg = append(p.CleanupMsg, *m)
setJobPayloadJSON(j.ID64, p)
rescheduleJob(j.ID64, 0, time.Unix(maxUnixTimestamp, 0).UTC())
return
fallthrough
case cacheObjSubType[`msg_gstock_rec_req`]:
log.Printf("jobGetVault[%d] : Receiving recipe.\n", j.ID64)
p.CleanupMsg = append(p.CleanupMsg, *m)
setJobPayloadJSON(j.ID64, p)
rescheduleJob(j.ID64, 0, time.Unix(maxUnixTimestamp, 0).UTC())
return
fallthrough
case cacheObjSubType[`msg_gstock_part_req`]:
log.Printf("jobGetVault[%d] : Receiving part.\n", j.ID64)
p.CleanupMsg = append(p.CleanupMsg, *m)
setJobPayloadJSON(j.ID64, p)
rescheduleJob(j.ID64, 0, time.Unix(maxUnixTimestamp, 0).UTC())
@ -2067,6 +2046,8 @@ func jobGetVault(j Job) {
rescheduleJob(j.ID64, 0, time.Unix(maxUnixTimestamp, 0).UTC())
clientSendCWMsg(j.UserID64, `/g_stock_other`)
return
} else {
setJobPayloadJSON(j.ID64, p)
}
log.Printf("jobGetVault[%d] : Cleaning up.\n", j.ID64)