From f28a188d22723671a74ad38590dab3e58f98f8a7 Mon Sep 17 00:00:00 2001 From: shoopea Date: Thu, 9 May 2019 17:23:13 +0800 Subject: [PATCH] test --- utils.go | 1 + workers.go | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/utils.go b/utils.go index bc4e843..dbcdaca 100644 --- a/utils.go +++ b/utils.go @@ -1,6 +1,7 @@ package main import ( + "errors" "log" "regexp" "strconv" diff --git a/workers.go b/workers.go index 2fce7ff..065508d 100644 --- a/workers.go +++ b/workers.go @@ -103,7 +103,7 @@ func SQLIdentifyMsgWorker(id int, objIds <-chan int64) { cwm := ChatWarsMessageAuctionAnnounce{ MsgID64: objId, } - cwm.Lot, _ = strconv.Atoi(r.ReplaceAllString(m.Text, "${Lot}")) + cwm.LotID, _ = strconv.Atoi(r.ReplaceAllString(m.Text, "${Lot}")) cwm.Cond = r.ReplaceAllString(m.Text, "${Cond}") cwm.Quality = r.ReplaceAllString(m.Text, "${Quality}") cwm.Seller = r.ReplaceAllString(m.Text, "${Seller}")