From 683b1a7fe36b94d16574ff6722347e66b7503772 Mon Sep 17 00:00:00 2001 From: shoopea Date: Thu, 9 May 2019 17:28:24 +0800 Subject: [PATCH] test --- workers.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/workers.go b/workers.go index 038f8b0..e740e49 100644 --- a/workers.go +++ b/workers.go @@ -103,13 +103,15 @@ func SQLIdentifyMsgWorker(id int, objIds <-chan int64) { cwm := ChatWarsMessageAuctionAnnounce{ MsgID64: objId, } - cwm.LotID, _ = int32(strconv.ParseInt(r.ReplaceAllString(m.Text, "${Lot}"), 10, 32)) + l, _ := strconv.ParseInt(r.ReplaceAllString(m.Text, "${Lot}"), 10, 32) + cwm.LotID = int32(l) cwm.Item = r.ReplaceAllString(m.Text, "${Item}") cwm.Cond = r.ReplaceAllString(m.Text, "${Cond}") cwm.Quality = r.ReplaceAllString(m.Text, "${Quality}") cwm.Seller = r.ReplaceAllString(m.Text, "${Seller}") cwm.Buyer = r.ReplaceAllString(m.Text, "${Buyer}") - cwm.Price, _ = int32(strconv.ParseInt(r.ReplaceAllString(m.Text, "${Price}"), 10, 32)) + p, _ := strconv.ParseInt(r.ReplaceAllString(m.Text, "${Price}"), 10, 32) + cwm.Price = int32(p) cwm.Status = r.ReplaceAllString(m.Text, "${Status}") t, _ := fromChatWarsDate(r.ReplaceAllString(m.Text, "${End}")) cwm.End = t.Unix()