This commit is contained in:
shoopea 2019-05-13 11:43:34 +08:00
parent d39acb1014
commit dbde4f2225

View File

@ -176,37 +176,37 @@ func SQLIdentifyMsgWorker(id int, objIds <-chan int64) {
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}"))
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}"))
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}"))
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}"))
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}"))
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}"))
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