Skip to content

Commit

Permalink
fix: 应确保OB11NoticeEvent中的target_uid为String类型 (#200)
Browse files Browse the repository at this point in the history
* fix: 使机器人管理员组的权限凌驾于群管理员

* fix: 应确保GroupMemberBanType中的target_uid为String类型

* fix: 应确保OB11NoticeEvent中的target_uid为String类型
  • Loading branch information
lava081 authored Nov 23, 2024
1 parent 38208bc commit 7d8e2ca
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/adapter/onebot/11/event.ts
Original file line number Diff line number Diff line change
Expand Up @@ -167,8 +167,8 @@ export class OB11Event {
group_id: groupId,
operator_uid: (data.operator_id + '') || '',
operator_uin: (data.operator_id + '') || '',
target_uid: data.user_id || '',
target_uin: data.user_id || '',
target_uid: (data.user_id + '') || '',
target_uin: (data.user_id + '') || '',
type: data.sub_type,
}

Expand Down Expand Up @@ -221,8 +221,8 @@ export class OB11Event {
group_id: groupId,
operator_uid: (data.operator_id + '') || '',
operator_uin: (data.operator_id + '') || '',
target_uid: data.user_id || '',
target_uin: data.user_id || '',
target_uid: (data.user_id + '') || '',
target_uin: (data.user_id + '') || '',
duration: data.duration,
type: data.sub_type,
}
Expand Down Expand Up @@ -269,8 +269,8 @@ export class OB11Event {
group_id: groupId,
operator_uid: (data.operator_id + '') || '',
operator_uin: (data.operator_id + '') || '',
target_uid: data.user_id || '',
target_uin: data.user_id || '',
target_uid: (data.user_id + '') || '',
target_uin: (data.user_id + '') || '',
message_id: data.message_id,
tip_text: '撤回了一条消息',
}
Expand Down

0 comments on commit 7d8e2ca

Please sign in to comment.