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