This commit is contained in:
shoopea 2019-12-29 16:43:31 +08:00
parent c6c12f165a
commit 8b6ad144c3

4
job.go
View File

@ -730,7 +730,7 @@ func jobGStock(j Job) {
logOnError(err, "jobGStock : getObjMsg msg") logOnError(err, "jobGStock : getObjMsg msg")
rule, err := getMsgParsingRule(msg) rule, err := getMsgParsingRule(msg)
logOnError(err, "jobGStock : getMsgParsingRule") logOnError(err, "jobGStock : getMsgParsingRule")
if rule.MsgTypeID == objSubTypeMessageGStockAnyAck { if rule.MsgTypeID64 == objSubTypeMessageGStockAnyAck {
cwm, err := parseSubTypeMessageGStockAnyAck(msg, rule.re) cwm, err := parseSubTypeMessageGStockAnyAck(msg, rule.re)
for _, v := range cwm.Stock { for _, v := range cwm.Stock {
p.Stock = append(p.Stock, v) p.Stock = append(p.Stock, v)
@ -740,7 +740,7 @@ func jobGStock(j Job) {
err = createJobCallback(objSubTypeJobGStock, j.UserID64, objSubTypeMessageGStockAnyAck, b, 1*time.Minute) err = createJobCallback(objSubTypeJobGStock, j.UserID64, objSubTypeMessageGStockAnyAck, b, 1*time.Minute)
logOnError(err, "jobGStock : createJobCallback") logOnError(err, "jobGStock : createJobCallback")
clientSendCWMsg(j.UserID64, "/g_stock_alch") clientSendCWMsg(j.UserID64, "/g_stock_alch")
} else if rule.MsgTypeID == objSubTypeMessageBusy || rule.MsgTypeID == objSubTypeMessageBattle { } else if rule.MsgTypeID64 == objSubTypeMessageBusy || rule.MsgTypeID64 == objSubTypeMessageBattle {
m := TGCommand{ m := TGCommand{
Type: commandReplyMsg, Type: commandReplyMsg,
Text: "Busy, please retry later.", Text: "Busy, please retry later.",