From 09e7983d4e94efae5facb323d6a11758619ca06d Mon Sep 17 00:00:00 2001 From: moonrailgun Date: Sat, 17 Jun 2023 02:21:47 +0800 Subject: [PATCH] refactor(plugin:welcome): add groupInfo config check before read --- server/plugins/com.msgbyte.welcome/services/welcome.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/plugins/com.msgbyte.welcome/services/welcome.service.ts b/server/plugins/com.msgbyte.welcome/services/welcome.service.ts index 6c4d690e..1426d39b 100644 --- a/server/plugins/com.msgbyte.welcome/services/welcome.service.ts +++ b/server/plugins/com.msgbyte.welcome/services/welcome.service.ts @@ -31,7 +31,7 @@ class WelcomeService extends TcService { const groupInfo = await call(ctx).getGroupInfo(groupId); - if (groupInfo.config['plugin:groupWelcomeText']) { + if (groupInfo.config && groupInfo.config['plugin:groupWelcomeText']) { // 有欢迎词 const lobbyConverseId = await call(ctx).getGroupLobbyConverseId(groupId);