test
This commit is contained in:
parent
56bc4416cb
commit
d39acb1014
36
workers.go
36
workers.go
@ -175,6 +175,42 @@ func SQLIdentifyMsgWorker(id int, objIds <-chan int64) {
|
||||
rep.Points = int32(p)
|
||||
cwm.Report[r.ReplaceAllString(m.Text, "${Score1}")] = rep
|
||||
|
||||
rep = cwm.Report[r.ReplaceAllString(m.Text, "${Score2}")]
|
||||
p, err := strconv.Atoi(r.ReplaceAllString(m.Text, "${Points2}"))
|
||||
logOnError(err, "SQLIdentifyMsgWorker["+strconv.Itoa(id)+"] : convert Points2 : "+r.ReplaceAllString(m.Text, "$(Points2)"))
|
||||
rep.Points = int32(p)
|
||||
cwm.Report[r.ReplaceAllString(m.Text, "${Score2}")] = rep
|
||||
|
||||
rep = cwm.Report[r.ReplaceAllString(m.Text, "${Score3}")]
|
||||
p, err := strconv.Atoi(r.ReplaceAllString(m.Text, "${Points3}"))
|
||||
logOnError(err, "SQLIdentifyMsgWorker["+strconv.Itoa(id)+"] : convert Points3 : "+r.ReplaceAllString(m.Text, "$(Points3)"))
|
||||
rep.Points = int32(p)
|
||||
cwm.Report[r.ReplaceAllString(m.Text, "${Score3}")] = rep
|
||||
|
||||
rep = cwm.Report[r.ReplaceAllString(m.Text, "${Score4}")]
|
||||
p, err := strconv.Atoi(r.ReplaceAllString(m.Text, "${Points4}"))
|
||||
logOnError(err, "SQLIdentifyMsgWorker["+strconv.Itoa(id)+"] : convert Points4 : "+r.ReplaceAllString(m.Text, "$(Points4)"))
|
||||
rep.Points = int32(p)
|
||||
cwm.Report[r.ReplaceAllString(m.Text, "${Score4}")] = rep
|
||||
|
||||
rep = cwm.Report[r.ReplaceAllString(m.Text, "${Score5}")]
|
||||
p, err := strconv.Atoi(r.ReplaceAllString(m.Text, "${Points5}"))
|
||||
logOnError(err, "SQLIdentifyMsgWorker["+strconv.Itoa(id)+"] : convert Points5 : "+r.ReplaceAllString(m.Text, "$(Points5)"))
|
||||
rep.Points = int32(p)
|
||||
cwm.Report[r.ReplaceAllString(m.Text, "${Score5}")] = rep
|
||||
|
||||
rep = cwm.Report[r.ReplaceAllString(m.Text, "${Score6}")]
|
||||
p, err := strconv.Atoi(r.ReplaceAllString(m.Text, "${Points6}"))
|
||||
logOnError(err, "SQLIdentifyMsgWorker["+strconv.Itoa(id)+"] : convert Points6 : "+r.ReplaceAllString(m.Text, "$(Points6)"))
|
||||
rep.Points = int32(p)
|
||||
cwm.Report[r.ReplaceAllString(m.Text, "${Score6}")] = rep
|
||||
|
||||
rep = cwm.Report[r.ReplaceAllString(m.Text, "${Score7}")]
|
||||
p, err := strconv.Atoi(r.ReplaceAllString(m.Text, "${Points7}"))
|
||||
logOnError(err, "SQLIdentifyMsgWorker["+strconv.Itoa(id)+"] : convert Points7 : "+r.ReplaceAllString(m.Text, "$(Points7)"))
|
||||
rep.Points = int32(p)
|
||||
cwm.Report[r.ReplaceAllString(m.Text, "${Score7}")] = rep
|
||||
|
||||
b, err := json.Marshal(cwm)
|
||||
/*
|
||||
if len(r.ReplaceAllString(m.Text, "${Loot1}")) < 6 || len(r.ReplaceAllString(m.Text, "${Loot1}")) > 11 {
|
||||
|
Loading…
Reference in New Issue
Block a user