test
This commit is contained in:
parent
af9e188412
commit
b1d631e4ec
20
workers.go
20
workers.go
@ -100,19 +100,19 @@ func SQLIdentifyMsgWorker(id int, objIds <-chan int64) {
|
||||
log.Printf("SQLIdentifyMsgWorker["+strconv.Itoa(id)+"] : Stamina : %s (%d)\n", r.ReplaceAllString(m.Text, "${Stamina}"), objId)
|
||||
log.Printf("SQLIdentifyMsgWorker["+strconv.Itoa(id)+"] : Crit : %s (%d)\n", r.ReplaceAllString(m.Text, "${Crit}"), objId)
|
||||
case objSubTypeMessageAuctionAnnounce:
|
||||
m := ChatWarsMessageAuctionAnnounce{
|
||||
cwm := ChatWarsMessageAuctionAnnounce{
|
||||
ID64: objId,
|
||||
}
|
||||
m.Lot, _ = strconv.Atoi(r.ReplaceAllString(m.Text, "${Lot}"))
|
||||
m.Cond = r.ReplaceAllString(m.Text, "${Cond}")
|
||||
m.Quality = r.ReplaceAllString(m.Text, "${Quality}")
|
||||
m.Seller = r.ReplaceAllString(m.Text, "${Seller}")
|
||||
m.Buyer = r.ReplaceAllString(m.Text, "${Buyer}")
|
||||
m.Price, _ = strconv.Atoi(r.ReplaceAllString(m.Text, "${Price}"))
|
||||
m.Status = r.ReplaceAllString(m.Text, "${Status}")
|
||||
cwm.Lot, _ = 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}")
|
||||
cwm.Buyer = r.ReplaceAllString(m.Text, "${Buyer}")
|
||||
cwm.Price, _ = strconv.Atoi(r.ReplaceAllString(m.Text, "${Price}"))
|
||||
cwm.Status = r.ReplaceAllString(m.Text, "${Status}")
|
||||
t, _ := fromChatWarsDate(r.ReplaceAllString(m.Text, "${End}"))
|
||||
m.End = t.Unix()
|
||||
insertMsgAuctionAnnounce(&m)
|
||||
cwm.End = t.Unix()
|
||||
insertMsgAuctionAnnounce(&cwm)
|
||||
case objSubTypeMessageTime:
|
||||
/*
|
||||
log.Printf("SQLIdentifyMsgWorker["+strconv.Itoa(id)+"] : Time (%d)\n", objId)
|
||||
|
Loading…
Reference in New Issue
Block a user