From 988e0db5fb862abf7a5ef65997645dc6f4456114 Mon Sep 17 00:00:00 2001 From: shoopea Date: Fri, 31 May 2019 10:04:37 +0800 Subject: [PATCH] test --- def.go | 4 ++-- msg.go | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/def.go b/def.go index d45dc66..f60cf46 100644 --- a/def.go +++ b/def.go @@ -78,8 +78,8 @@ type ChatWarsMessageMeAck struct { GuildID64 int64 `json:"guild_id"` State string `json:"state"` Level int64 `json:"level"` - ExpVal int64 `json:"exp_val"` - ExpTarget int64 `json:"exp_target"` + ExpNow int64 `json:"exp_now"` + ExpLvl int64 `json:"exp_lvl"` } type ChatWarsMessageGRolesAck struct { diff --git a/msg.go b/msg.go index 1df35a5..8fb1cf4 100644 --- a/msg.go +++ b/msg.go @@ -38,11 +38,11 @@ func parseSubTypeMessageMeAck(m *ChatWarsMessage, r *regexp.Regexp) (*ChatWarsMe GuildID64: getObjGuildID(r.ReplaceAllString(m.Text, "${Guild}")), State: r.ReplaceAllString(m.Text, "${State}"), } - i, _ := strconv.ParseInt(r.ReplaceAllString(m.Text, "${ExpNow}"), 10, 64) + i, _ = strconv.ParseInt(r.ReplaceAllString(m.Text, "${ExpNow}"), 10, 64) cwm.ExpNow = i - i, _ := strconv.ParseInt(r.ReplaceAllString(m.Text, "${ExpLvl}"), 10, 64) + i, _ = strconv.ParseInt(r.ReplaceAllString(m.Text, "${ExpLvl}"), 10, 64) cwm.ExpLvl = i - i, _ := strconv.ParseInt(r.ReplaceAllString(m.Text, "${Level}"), 10, 64) + i, _ = strconv.ParseInt(r.ReplaceAllString(m.Text, "${Level}"), 10, 64) cwm.Level = i /*