This commit is contained in:
shoopea 2019-05-09 17:28:24 +08:00
parent 165926b7f1
commit 683b1a7fe3

View File

@ -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()