This commit is contained in:
shoopea 2019-05-13 11:19:37 +08:00
parent e907a62896
commit c9b925fde7

View File

@ -168,13 +168,8 @@ 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)"))
rep = cwm.Report[r.ReplaceAllString(m.Text, "$(Score1)")]
rep.Points, _ = strconv.Atoi(r.ReplaceAllString(m.Text, "$(Points1)"))
b, err := json.Marshal(cwm)
/*
if len(r.ReplaceAllString(m.Text, "${Loot1}")) < 6 || len(r.ReplaceAllString(m.Text, "${Loot1}")) > 11 {