From c9b925fde730372368641a2e0b9bacce73d123ba Mon Sep 17 00:00:00 2001 From: shoopea Date: Mon, 13 May 2019 11:19:37 +0800 Subject: [PATCH] test --- workers.go | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/workers.go b/workers.go index 99d366e..1e76d1c 100644 --- a/workers.go +++ b/workers.go @@ -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 {