tset
This commit is contained in:
parent
f28a188d22
commit
165926b7f1
@ -103,12 +103,13 @@ func SQLIdentifyMsgWorker(id int, objIds <-chan int64) {
|
|||||||
cwm := ChatWarsMessageAuctionAnnounce{
|
cwm := ChatWarsMessageAuctionAnnounce{
|
||||||
MsgID64: objId,
|
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.Cond = r.ReplaceAllString(m.Text, "${Cond}")
|
||||||
cwm.Quality = r.ReplaceAllString(m.Text, "${Quality}")
|
cwm.Quality = r.ReplaceAllString(m.Text, "${Quality}")
|
||||||
cwm.Seller = r.ReplaceAllString(m.Text, "${Seller}")
|
cwm.Seller = r.ReplaceAllString(m.Text, "${Seller}")
|
||||||
cwm.Buyer = r.ReplaceAllString(m.Text, "${Buyer}")
|
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}")
|
cwm.Status = r.ReplaceAllString(m.Text, "${Status}")
|
||||||
t, _ := fromChatWarsDate(r.ReplaceAllString(m.Text, "${End}"))
|
t, _ := fromChatWarsDate(r.ReplaceAllString(m.Text, "${End}"))
|
||||||
cwm.End = t.Unix()
|
cwm.End = t.Unix()
|
||||||
|
Loading…
Reference in New Issue
Block a user