update g stock
This commit is contained in:
parent
8fa62df8e9
commit
e8c284b686
8
job.go
8
job.go
@ -791,6 +791,14 @@ func jobGStock(j Job) {
|
||||
logOnError(err, "jobGStock : createJobCallback")
|
||||
clientSendCWMsg(cfg.Bot.Admin, "/g_stock_other")
|
||||
case 6: // collate everything and reply
|
||||
msg, err := getObjMsg(j.Trigger)
|
||||
logOnError(err, "jobGStock : getObjMsg msg")
|
||||
rule, err := getMsgParsingRule(msg)
|
||||
logOnError(err, "jobGStock : getMsgParsingRule")
|
||||
cwm, err := parseSubTypeMessageGStockAnyAck(msg, rule.re)
|
||||
for _, v := range cwm.Stock {
|
||||
p.Stock = append(p.Stock, v)
|
||||
}
|
||||
for _, v := range p.Stock {
|
||||
item, err := getObjItem(v.ItemID64)
|
||||
logOnError(err, "jobGStock : getObjItem")
|
||||
|
Loading…
Reference in New Issue
Block a user