update get stash
This commit is contained in:
parent
f44f64db31
commit
a68e5b0f73
2
def.go
2
def.go
@ -630,7 +630,7 @@ type JobPayloadGetStash struct {
|
||||
ClientID64 []int64 `json:"clients_id"`
|
||||
ClientCount int64 `json:"client_count"`
|
||||
Stock []ChatWarsItems `json:"stock"`
|
||||
CleanupMsgs []ChatWarsMessage `json:"cleanup_msg"`
|
||||
CleanupMsg []ChatWarsMessage `json:"cleanup_msg"`
|
||||
}
|
||||
|
||||
const (
|
||||
|
6
job.go
6
job.go
@ -2087,12 +2087,12 @@ func jobGetStash(j Job) {
|
||||
rule, err := getMsgParsingRule(m)
|
||||
logOnError(err, "jobAlchAll : getMsgParsingRule")
|
||||
if rule.MsgTypeID64 == cacheObjSubType[`msg_exchange_req`] {
|
||||
p.CleanupMsgs = append(p.CleanupMsg, *m)
|
||||
p.CleanupMsg = append(p.CleanupMsg, *m)
|
||||
setJobPayloadJSON(j.ID64, p)
|
||||
rescheduleJob(j.ID64, 0, time.Unix(maxUnixTimestamp, 0).UTC())
|
||||
return
|
||||
} else if rule.MsgTypeID64 == cacheObjSubType[`msg_exchange_ack`] {
|
||||
p.CleanupMsgs = append(p.CleanupMsg, *m)
|
||||
p.CleanupMsg = append(p.CleanupMsg, *m)
|
||||
for k, v := range p.ClientID64 {
|
||||
if v == j.UserID64 {
|
||||
p.ClientID64[len(p.ClientID64)-1], p.ClientID64[k] = p.ClientID64[k], p.ClientID64[len(p.ClientID64)-1]
|
||||
@ -2101,7 +2101,7 @@ func jobGetStash(j Job) {
|
||||
}
|
||||
j.Trigger = 0
|
||||
} else if rule.MsgTypeID64 == cacheObjSubType[`msg_busy`] {
|
||||
p.CleanupMsgs = append(p.CleanupMsg, *m)
|
||||
p.CleanupMsg = append(p.CleanupMsg, *m)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user