test
This commit is contained in:
parent
a152342a17
commit
b3857349b6
2
msg.go
2
msg.go
@ -32,7 +32,7 @@ func parseSubTypeMessageReportAck(m *ChatWarsMessage, r *regexp.Regexp) (*ChatWa
|
|||||||
|
|
||||||
func parseSubTypeMessageGStockAnyAck(m *ChatWarsMessage, r *regexp.Regexp) (*ChatWarsMessageStock, error) {
|
func parseSubTypeMessageGStockAnyAck(m *ChatWarsMessage, r *regexp.Regexp) (*ChatWarsMessageStock, error) {
|
||||||
cwm := ChatWarsMessageStock{}
|
cwm := ChatWarsMessageStock{}
|
||||||
items := new([]ChatWarsItems)
|
items []ChatWarsItems
|
||||||
re := regexp.MustCompile(`\n([0-9a-z]+) (.*) x ([0-9]+)`)
|
re := regexp.MustCompile(`\n([0-9a-z]+) (.*) x ([0-9]+)`)
|
||||||
for _, l := range re.FindAllStringSubmatch(r.ReplaceAllString(m.Text, "${Stock}"), -1) {
|
for _, l := range re.FindAllStringSubmatch(r.ReplaceAllString(m.Text, "${Stock}"), -1) {
|
||||||
i := getObjItemID(l[1])
|
i := getObjItemID(l[1])
|
||||||
|
Loading…
Reference in New Issue
Block a user