fix gdeposit

This commit is contained in:
shoopea 2019-08-29 19:52:09 +08:00
parent e7a6f0bd29
commit 92117ee560

2
msg.go
View File

@ -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