Skip to content

Commit

Permalink
fix: 修复一处数组越界
Browse files Browse the repository at this point in the history
  • Loading branch information
Redmomn committed Jul 25, 2024
1 parent 4d4678c commit e098951
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ func (c *QQClient) GetUid(uin uint32, groupUin ...uint32) string {
if err := c.RefreshFriendCache(); err != nil {
return ""
}
} else if c.cache.GroupMemberCacheIsEmpty(groupUin[0]) {
} else if len(groupUin) != 0 && c.cache.GroupMemberCacheIsEmpty(groupUin[0]) {
if err := c.RefreshGroupMembersCache(groupUin[0]); err != nil {
return ""
}
Expand Down

0 comments on commit e098951

Please sign in to comment.