fix g deposit
This commit is contained in:
parent
92117ee560
commit
dc009b1b43
2
job.go
2
job.go
@ -740,11 +740,13 @@ func jobGDepositForward(j Job) {
|
|||||||
cwm, err := parseSubTypeMessageGDepositAck(msg, rule.re)
|
cwm, err := parseSubTypeMessageGDepositAck(msg, rule.re)
|
||||||
|
|
||||||
if cwm.ItemID64 == p.ItemID64 && cwm.Quantity == p.Quantity {
|
if cwm.ItemID64 == p.ItemID64 && cwm.Quantity == p.Quantity {
|
||||||
|
log.Printf("jobGDepositForward : match (%d / %d).\n", cwm.ItemID64, cwm.Quantity)
|
||||||
clientFwdCWMsg(cwm.Msg.ID64, cwm.Msg.ChatID64, cfg.Bot.Depositchat)
|
clientFwdCWMsg(cwm.Msg.ID64, cwm.Msg.ChatID64, cfg.Bot.Depositchat)
|
||||||
|
|
||||||
err = setJobDone(j.ID64)
|
err = setJobDone(j.ID64)
|
||||||
logOnError(err, "jobGDeposit : setJobDone")
|
logOnError(err, "jobGDeposit : setJobDone")
|
||||||
} else {
|
} else {
|
||||||
|
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, objSubTypeMessageGDepositAck)
|
setJobCallback(j.ID64, j.UserID64, objSubTypeMessageGDepositAck)
|
||||||
|
Loading…
Reference in New Issue
Block a user