Skip to content

Commit

Permalink
Merge pull request #310 from cnxysoft/upmain
Browse files Browse the repository at this point in the history
style: 规范代码
  • Loading branch information
cnxysoft authored Aug 27, 2024
2 parents 030192a + f983add commit 8565aee
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 9 deletions.
5 changes: 1 addition & 4 deletions src/core/apis/group.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,8 @@ import {
KickMemberV2Req,
MemberExtSourceType,
NapCatCore,
NodeIKernelGroupService,
} from '@/core';
import { isNumeric, runAllWithTimeout, sleep } from '@/common/helper';
import { isNumeric, runAllWithTimeout } from '@/common/helper';

export class NTQQGroupApi {
context: InstanceContext;
Expand All @@ -30,8 +29,6 @@ export class NTQQGroupApi {
this.groups = await this.getGroups();
for (const group of this.groups) {
this.groupCache.set(group.groupCode, group);
//const data = await this.getGroupMembers(group.groupCode, 3000);
//this.groupMemberCache.set(group.groupCode, data);
}
this.context.logger.logDebug(`加载${this.groups.length}个群组缓存完成`);
}
Expand Down
2 changes: 0 additions & 2 deletions src/core/core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -160,10 +160,8 @@ export class NapCatCore {
} else {
this.apis.GroupApi.groupMemberCache.set(groupCode, arg.infos);
}
//console.log('onMemberListChange', groupCode, arg.infos.size);
};
groupListener.onMemberInfoChange = (groupCode, dataSource, members) => {
//console.log('onMemberInfoChange', groupCode, dataSource, members.size);
if (dataSource === DataSource.LOCAL && members.get(this.selfInfo.uid)?.isDelete) {
// 自身退群或者被踢退群 5s用于Api操作 之后不再出现
setTimeout(() => {
Expand Down
3 changes: 0 additions & 3 deletions src/core/listeners/NodeIKernelGroupListener.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,4 @@ export class NodeIKernelGroupListener {

onShutUpMemberListChanged(...args: unknown[]) {
}

onGroupListInited(...args: unknown[]) {
}
}

0 comments on commit 8565aee

Please sign in to comment.