diff --git a/src/core/index.ts b/src/core/index.ts index c6e9f0ea..c5be4abd 100644 --- a/src/core/index.ts +++ b/src/core/index.ts @@ -145,8 +145,10 @@ export class NapCatCore { if (Info.status == 20) { this.selfInfo.online = false; this.context.logger.log("账号状态变更为离线"); + return; + } else { + this.selfInfo.online = true; } - this.selfInfo.online = true; }; this.context.session.getProfileService().addKernelProfileListener( proxiedListenerOf(profileListener, this.context.logger),