Skip to content

Commit

Permalink
pjjc 严重bug修复
Browse files Browse the repository at this point in the history
  • Loading branch information
Azusa-Yuan committed Sep 5, 2024
1 parent 95364a3 commit 8144808
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions ZeroBot/matcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ func (m *Matcher) copy() *Matcher {
Handler: m.Handler,
Temp: m.Temp,
Engine: m.Engine,
Mark: m.Mark,
}
}

Expand Down
2 changes: 1 addition & 1 deletion plugin/monitor/prometheus.go
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
4 changes: 2 additions & 2 deletions plugin/pcr_jjc3/pcrjjc.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand All @@ -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()
Expand Down

0 comments on commit 8144808

Please sign in to comment.