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

View File

@ -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 {