This commit is contained in:
shoopea 2019-05-13 11:18:47 +08:00
parent 40d653d6f0
commit e907a62896

View File

@ -168,13 +168,13 @@ func SQLIdentifyMsgWorker(id int, objIds <-chan int64) {
Stock: int32(s),
}
cwm.Report[r.ReplaceAllString(m.Text, "${Loot7}")] = rep
cwm.Report[r.ReplaceAllString(m.Text, "$(Score1)")].Points, _ := strconv.Atoi(r.ReplaceAllString(m.Text, "$(Points1)"))
cwm.Report[r.ReplaceAllString(m.Text, "$(Score2)")].Points, _ := strconv.Atoi(r.ReplaceAllString(m.Text, "$(Points2)"))
cwm.Report[r.ReplaceAllString(m.Text, "$(Score3)")].Points, _ := strconv.Atoi(r.ReplaceAllString(m.Text, "$(Points3)"))
cwm.Report[r.ReplaceAllString(m.Text, "$(Score4)")].Points, _ := strconv.Atoi(r.ReplaceAllString(m.Text, "$(Points4)"))
cwm.Report[r.ReplaceAllString(m.Text, "$(Score5)")].Points, _ := strconv.Atoi(r.ReplaceAllString(m.Text, "$(Points5)"))
cwm.Report[r.ReplaceAllString(m.Text, "$(Score6)")].Points, _ := strconv.Atoi(r.ReplaceAllString(m.Text, "$(Points6)"))
cwm.Report[r.ReplaceAllString(m.Text, "$(Score7)")].Points, _ := strconv.Atoi(r.ReplaceAllString(m.Text, "$(Points7)"))
cwm.Report[r.ReplaceAllString(m.Text, "$(Score1)")].Points, _ = strconv.Atoi(r.ReplaceAllString(m.Text, "$(Points1)"))
cwm.Report[r.ReplaceAllString(m.Text, "$(Score2)")].Points, _ = strconv.Atoi(r.ReplaceAllString(m.Text, "$(Points2)"))
cwm.Report[r.ReplaceAllString(m.Text, "$(Score3)")].Points, _ = strconv.Atoi(r.ReplaceAllString(m.Text, "$(Points3)"))
cwm.Report[r.ReplaceAllString(m.Text, "$(Score4)")].Points, _ = strconv.Atoi(r.ReplaceAllString(m.Text, "$(Points4)"))
cwm.Report[r.ReplaceAllString(m.Text, "$(Score5)")].Points, _ = strconv.Atoi(r.ReplaceAllString(m.Text, "$(Points5)"))
cwm.Report[r.ReplaceAllString(m.Text, "$(Score6)")].Points, _ = strconv.Atoi(r.ReplaceAllString(m.Text, "$(Points6)"))
cwm.Report[r.ReplaceAllString(m.Text, "$(Score7)")].Points, _ = strconv.Atoi(r.ReplaceAllString(m.Text, "$(Points7)"))
b, err := json.Marshal(cwm)
/*
if len(r.ReplaceAllString(m.Text, "${Loot1}")) < 6 || len(r.ReplaceAllString(m.Text, "${Loot1}")) > 11 {