fix gdeposit
This commit is contained in:
parent
e7a6f0bd29
commit
92117ee560
2
msg.go
2
msg.go
@ -26,7 +26,7 @@ func getMsgParsingRule(m *ChatWarsMessage) (*MessageParsingRule, error) {
|
|||||||
func parseSubTypeMessageGDepositAck(m *ChatWarsMessage, r *regexp.Regexp) (*ChatWarsMessageGDepositAck, error) {
|
func parseSubTypeMessageGDepositAck(m *ChatWarsMessage, r *regexp.Regexp) (*ChatWarsMessageGDepositAck, error) {
|
||||||
cwm := ChatWarsMessageGDepositAck{}
|
cwm := ChatWarsMessageGDepositAck{}
|
||||||
|
|
||||||
cwm.ItemID64 = getObjItemID(``, r.ReplaceAllString(m.Text, "${Used}"))
|
cwm.ItemID64 = getObjItemID(``, r.ReplaceAllString(m.Text, "${Item}"))
|
||||||
cwm.Quantity, _ = strconv.ParseInt(r.ReplaceAllString(m.Text, "${Quantity}"), 10, 64)
|
cwm.Quantity, _ = strconv.ParseInt(r.ReplaceAllString(m.Text, "${Quantity}"), 10, 64)
|
||||||
|
|
||||||
cwm.Msg = m
|
cwm.Msg = m
|
||||||
|
Loading…
Reference in New Issue
Block a user