Skip to content

Commit

Permalink
BUG修复
Browse files Browse the repository at this point in the history
修复退群事件找不到群员0的问题
  • Loading branch information
cnxysoft committed Jul 10, 2024
1 parent 287bbfd commit 1419635
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions UPDATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
- 修复群员名片更新后不刷新的问题
- 修改事件处理方式,降低上游负载
- 修复用户白名单(Debug)失效的问题
- 修复退群事件找不到群员0的问题
- 新增两个模板:群名片变更、群权限变更
- 名称:trigger.group.card_updated.tmpl
- 模板变量:group_code、member_code、old_member_name、member_name
Expand Down
2 changes: 1 addition & 1 deletion lsp/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (

var (
CommitId = "UNKNOWN"
BuildTime = "2024-07-11 01:29:00"
BuildTime = "2024-07-11 03:23:00"
Tags = "fix_A027"
)

Expand Down
2 changes: 1 addition & 1 deletion miraigo/client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -1228,7 +1228,7 @@ func (c *QQClient) handleMessage(wsmsg WebSocketMessage) {
member := c.FindGroup(wsmsg.GroupID.ToInt64()).FindMember(wsmsg.UserID.ToInt64())
if member != nil {
operator := member
if wsmsg.OperatorId != wsmsg.UserID {
if wsmsg.OperatorId != wsmsg.UserID && wsmsg.OperatorId != 0 {
operator = c.FindGroup(wsmsg.GroupID.ToInt64()).FindMember(wsmsg.OperatorId.ToInt64())
}
if operator != nil {
Expand Down

0 comments on commit 1419635

Please sign in to comment.