test
This commit is contained in:
parent
722d278a12
commit
a35a84aecd
4
def.go
4
def.go
@ -362,14 +362,14 @@ type JobPayloadGWithdraw struct {
|
|||||||
MsgID64 int64 `json:"msg_id"`
|
MsgID64 int64 `json:"msg_id"`
|
||||||
ChatID64 int64 `json:"chat_id"`
|
ChatID64 int64 `json:"chat_id"`
|
||||||
Request string `json:"request"`
|
Request string `json:"request"`
|
||||||
Status int `json:"status"`
|
Status int64 `json:"status"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type JobPayloadGDeposit struct {
|
type JobPayloadGDeposit struct {
|
||||||
MsgID64 int64 `json:"msg_id"`
|
MsgID64 int64 `json:"msg_id"`
|
||||||
ChatID64 int64 `json:"chat_id"`
|
ChatID64 int64 `json:"chat_id"`
|
||||||
ResObjID64 []int64 `json:"res_obj_id"`
|
ResObjID64 []int64 `json:"res_obj_id"`
|
||||||
Status int `json:"status"`
|
Status int64 `json:"status"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type JobPayloadGDepositForward struct {
|
type JobPayloadGDepositForward struct {
|
||||||
|
8
job.go
8
job.go
@ -719,9 +719,9 @@ func jobGStock(j Job) {
|
|||||||
b, _ := json.Marshal(&p)
|
b, _ := json.Marshal(&p)
|
||||||
jobID64, err := createJob(objSubTypeJobGStock, objJobPriority, j.UserID64, 0, time.Unix(maxUnixTimestamp, 0).UTC(), b)
|
jobID64, err := createJob(objSubTypeJobGStock, objJobPriority, j.UserID64, 0, time.Unix(maxUnixTimestamp, 0).UTC(), b)
|
||||||
logOnError(err, "jobGStock : createJob")
|
logOnError(err, "jobGStock : createJob")
|
||||||
setJobCallback(jobID64, j.UserID64, cacheObjSubType[`msg_gstock_any_ack`], 10)
|
setJobCallback(jobID64, j.UserID64, cacheObjSubType[`msg_gstock_any_ack`])
|
||||||
setJobCallback(jobID64, j.UserID64, cacheObjSubType[`msg_busy`], 10)
|
setJobCallback(jobID64, j.UserID64, cacheObjSubType[`msg_busy`])
|
||||||
setJobCallback(jobID64, j.UserID64, cacheObjSubType[`msg_battle`], 10)
|
setJobCallback(jobID64, j.UserID64, cacheObjSubType[`msg_battle`])
|
||||||
err = setJobTimeout(jobID64, 1*time.Minute)
|
err = setJobTimeout(jobID64, 1*time.Minute)
|
||||||
logOnError(err, "jobGStock : setJobTimeout")
|
logOnError(err, "jobGStock : setJobTimeout")
|
||||||
clientSendCWMsg(j.UserID64, "/g_stock_res")
|
clientSendCWMsg(j.UserID64, "/g_stock_res")
|
||||||
@ -894,7 +894,7 @@ func jobGDepositForward(j Job) {
|
|||||||
//log.Printf("jobGDepositForward : found (%d / %d), expected (%d / %d).\n", cwm.ItemID64, cwm.Quantity, p.ItemID64, p.Quantity)
|
//log.Printf("jobGDepositForward : found (%d / %d), expected (%d / %d).\n", cwm.ItemID64, cwm.Quantity, p.ItemID64, p.Quantity)
|
||||||
err = rescheduleJob(j.ID64, 0, time.Unix(maxUnixTimestamp, 0).UTC())
|
err = rescheduleJob(j.ID64, 0, time.Unix(maxUnixTimestamp, 0).UTC())
|
||||||
logOnError(err, "jobGDepositForward : rescheduleJob")
|
logOnError(err, "jobGDepositForward : rescheduleJob")
|
||||||
setJobCallback(j.ID64, j.UserID64, cacheObjSubType[`msg_g_deposit_req`], 10)
|
setJobCallback(j.ID64, j.UserID64, cacheObjSubType[`msg_g_deposit_req`])
|
||||||
|
|
||||||
}
|
}
|
||||||
return
|
return
|
||||||
|
Loading…
Reference in New Issue
Block a user