This commit is contained in:
shoopea 2019-05-09 17:27:02 +08:00
parent f28a188d22
commit 165926b7f1

View File

@ -103,12 +103,13 @@ func SQLIdentifyMsgWorker(id int, objIds <-chan int64) {
cwm := ChatWarsMessageAuctionAnnounce{
MsgID64: objId,
}
cwm.LotID, _ = strconv.Atoi(r.ReplaceAllString(m.Text, "${Lot}"))
cwm.LotID, _ = int32(strconv.ParseInt(r.ReplaceAllString(m.Text, "${Lot}"), 10, 32))
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, _ = strconv.Atoi(r.ReplaceAllString(m.Text, "${Price}"))
cwm.Price, _ = int32(strconv.ParseInt(r.ReplaceAllString(m.Text, "${Price}"), 10, 32))
cwm.Status = r.ReplaceAllString(m.Text, "${Status}")
t, _ := fromChatWarsDate(r.ReplaceAllString(m.Text, "${End}"))
cwm.End = t.Unix()