This commit is contained in:
shoopea 2019-05-11 19:24:01 +08:00
parent 959ffa7c17
commit 335a781458

View File

@ -106,16 +106,16 @@ func SQLIdentifyMsgWorker(id int, objIds <-chan int64) {
}
g, err := strconv.Atoi(r.ReplaceAllString(m.Text, "${Gold1}"))
s, err := strconv.Atoi(r.ReplaceAllString(m.Text, "${Stock1}"))
rep := ChatWarsMessageMiniWarReport{
rep := ChatWarsMessageMiniWarCastle{
Gardian: r.ReplaceAllString(m.Text, "${Gardian1}"),
Result: r.ReplaceAllString(m.Text, "${Result1}"),
Gold: g,
Stock: s,
}
cwm.Report[r.ReplaceAllString(m.Text, "${Loot1}")] = rep
g, err := strconv.Atoi(r.ReplaceAllString(m.Text, "${Gold2}"))
s, err := strconv.Atoi(r.ReplaceAllString(m.Text, "${Stock2}"))
rep = ChatWarsMessageMiniWarReport{
g, err = strconv.Atoi(r.ReplaceAllString(m.Text, "${Gold2}"))
s, err = strconv.Atoi(r.ReplaceAllString(m.Text, "${Stock2}"))
rep = ChatWarsMessageMiniWarCastle{
Gardian: r.ReplaceAllString(m.Text, "${Gardian2}"),
Result: r.ReplaceAllString(m.Text, "${Result2}"),
Gold: g,