From 81448085a769f886c834280d9477e502075f0c44 Mon Sep 17 00:00:00 2001 From: Asuza Date: Thu, 5 Sep 2024 22:29:57 +0800 Subject: [PATCH] =?UTF-8?q?pjjc=20=E4=B8=A5=E9=87=8Dbug=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ZeroBot/matcher.go | 1 + plugin/monitor/prometheus.go | 2 +- plugin/pcr_jjc3/pcrjjc.go | 4 ++-- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/ZeroBot/matcher.go b/ZeroBot/matcher.go index a5c293e..f5ab57b 100644 --- a/ZeroBot/matcher.go +++ b/ZeroBot/matcher.go @@ -150,6 +150,7 @@ func (m *Matcher) copy() *Matcher { Handler: m.Handler, Temp: m.Temp, Engine: m.Engine, + Mark: m.Mark, } } diff --git a/plugin/monitor/prometheus.go b/plugin/monitor/prometheus.go index 1be33ca..3a34dbf 100644 --- a/plugin/monitor/prometheus.go +++ b/plugin/monitor/prometheus.go @@ -17,7 +17,7 @@ var ( Help: "Histogram of processing time", Buckets: []float64{0.5, 1.0, 2.0, 5.0, 10.0}, // 自定义桶 }, - []string{"plugin", "controller", "success"}, + []string{"plugin", "matcher", "success"}, ) RequestsTotal = prometheus.NewCounterVec( diff --git a/plugin/pcr_jjc3/pcrjjc.go b/plugin/pcr_jjc3/pcrjjc.go index 2ac9c87..2da89c8 100644 --- a/plugin/pcr_jjc3/pcrjjc.go +++ b/plugin/pcr_jjc3/pcrjjc.go @@ -126,7 +126,7 @@ func init() { if gid == "0" { gid = "" } - msg, err := userInfoManage.bind(cx+oldId, uid, bid, gid, false) + msg, err := userInfoManage.bind(cx+oldId, uid, gid, bid, false) if err != nil { logrus.Infoln("[pcr] 绑定账号", err) msg = err.Error() @@ -147,7 +147,7 @@ func init() { if gid == "0" { gid = "" } - msg, err := userInfoManage.bind(cx+oldId, uid, bid, gid, true) + msg, err := userInfoManage.bind(cx+oldId, uid, gid, bid, true) if err != nil { logrus.Infoln("[pcr] 关注账号", err) msg = err.Error()