update
This commit is contained in:
parent
c6c12f165a
commit
8b6ad144c3
4
job.go
4
job.go
@ -730,7 +730,7 @@ func jobGStock(j Job) {
|
||||
logOnError(err, "jobGStock : getObjMsg msg")
|
||||
rule, err := getMsgParsingRule(msg)
|
||||
logOnError(err, "jobGStock : getMsgParsingRule")
|
||||
if rule.MsgTypeID == objSubTypeMessageGStockAnyAck {
|
||||
if rule.MsgTypeID64 == objSubTypeMessageGStockAnyAck {
|
||||
cwm, err := parseSubTypeMessageGStockAnyAck(msg, rule.re)
|
||||
for _, v := range cwm.Stock {
|
||||
p.Stock = append(p.Stock, v)
|
||||
@ -740,7 +740,7 @@ func jobGStock(j Job) {
|
||||
err = createJobCallback(objSubTypeJobGStock, j.UserID64, objSubTypeMessageGStockAnyAck, b, 1*time.Minute)
|
||||
logOnError(err, "jobGStock : createJobCallback")
|
||||
clientSendCWMsg(j.UserID64, "/g_stock_alch")
|
||||
} else if rule.MsgTypeID == objSubTypeMessageBusy || rule.MsgTypeID == objSubTypeMessageBattle {
|
||||
} else if rule.MsgTypeID64 == objSubTypeMessageBusy || rule.MsgTypeID64 == objSubTypeMessageBattle {
|
||||
m := TGCommand{
|
||||
Type: commandReplyMsg,
|
||||
Text: "Busy, please retry later.",
|
||||
|
Loading…
Reference in New Issue
Block a user