This commit is contained in:
shoopea 2019-05-11 19:25:35 +08:00
parent 335a781458
commit 4f93acedb2

View File

@ -109,8 +109,8 @@ func SQLIdentifyMsgWorker(id int, objIds <-chan int64) {
rep := ChatWarsMessageMiniWarCastle{
Gardian: r.ReplaceAllString(m.Text, "${Gardian1}"),
Result: r.ReplaceAllString(m.Text, "${Result1}"),
Gold: g,
Stock: s,
Gold: int32(g),
Stock: int32(s),
}
cwm.Report[r.ReplaceAllString(m.Text, "${Loot1}")] = rep
g, err = strconv.Atoi(r.ReplaceAllString(m.Text, "${Gold2}"))
@ -118,8 +118,8 @@ func SQLIdentifyMsgWorker(id int, objIds <-chan int64) {
rep = ChatWarsMessageMiniWarCastle{
Gardian: r.ReplaceAllString(m.Text, "${Gardian2}"),
Result: r.ReplaceAllString(m.Text, "${Result2}"),
Gold: g,
Stock: s,
Gold: int32(g),
Stock: int32(s),
}
cwm.Report[r.ReplaceAllString(m.Text, "${Loot2}")] = rep
/*