From 335a781458db28dd96a2f8aa29551eb39c32a348 Mon Sep 17 00:00:00 2001 From: shoopea Date: Sat, 11 May 2019 19:24:01 +0800 Subject: [PATCH] test --- workers.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/workers.go b/workers.go index 1bef097..43910c8 100644 --- a/workers.go +++ b/workers.go @@ -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,