fix
This commit is contained in:
1 parent
c3696eea9a
commit
394c9a0f00
1 file changed
+1
-6
+1
-6
@@ -326,11 +326,6 @@ export class NapCatOneBot11Adapter {
|
|||||||
const flag = notify.group.groupCode + '|' + notify.seq + '|' + notify.type;
|
const flag = notify.group.groupCode + '|' + notify.seq + '|' + notify.type;
|
||||||
this.context.logger.logDebug('收到群通知', notify);
|
this.context.logger.logDebug('收到群通知', notify);
|
||||||
|
|
||||||
// let member2: GroupMember;
|
|
||||||
// if (notify.user2.uid) {
|
|
||||||
// member2 = await getGroupMember(notify.group.groupCode, null, notify.user2.uid);
|
|
||||||
// }
|
|
||||||
|
|
||||||
if ([
|
if ([
|
||||||
GroupNotifyTypes.ADMIN_SET,
|
GroupNotifyTypes.ADMIN_SET,
|
||||||
GroupNotifyTypes.ADMIN_UNSET,
|
GroupNotifyTypes.ADMIN_UNSET,
|
||||||
@@ -406,7 +401,7 @@ export class NapCatOneBot11Adapter {
|
|||||||
const groupInviteEvent = new OB11GroupRequestEvent(
|
const groupInviteEvent = new OB11GroupRequestEvent(
|
||||||
this.core,
|
this.core,
|
||||||
parseInt(notify.group.groupCode),
|
parseInt(notify.group.groupCode),
|
||||||
parseInt(notify.user1.uid),
|
parseInt(await this.core.apis.UserApi.getUinByUidV2(notify.user1.uid)),
|
||||||
'invite',
|
'invite',
|
||||||
notify.postscript,
|
notify.postscript,
|
||||||
flag,
|
flag,
|
||||||
|
|||||||
Reference in new issue
Block a user