From ffc664a8579f8e84c9a8e8dab7f410c5bdb89e7f Mon Sep 17 00:00:00 2001 From: Qian23333 <119576779+Qian23333@users.noreply.github.com> Date: Sat, 16 Aug 2025 09:15:36 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E6=B2=A1=E6=9C=89conf?= =?UTF-8?q?ig=E4=B8=8D=E8=83=BD=E6=9F=A5=E8=AF=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/remind.js | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/apps/remind.js b/apps/remind.js index 5383028..e18ae68 100644 --- a/apps/remind.js +++ b/apps/remind.js @@ -185,10 +185,15 @@ export class Remind extends ZZZPlugin { if (!uid) return false; const targetUserId = this.e.user_id; - const userConfig = await this.getUserConfig(targetUserId); + let userConfig = await this.getUserConfig(targetUserId); if (!userConfig) { - await this.reply('尚未设置任何提醒,请先设置阈值'); - return false; + // 如果没有配置,使用默认配置 + const defaultConfig = settings.getConfig('remind'); + userConfig = { + enable: false, // 不开启提醒,仅用于查询 + abyssCheckLevel: defaultConfig.abyssCheckLevel, + deadlyStars: defaultConfig.deadlyStars, + }; } await this.reply('正在查询,请稍候...'); const messages = await this.checkUser(targetUserId, userConfig, true); // 主动查询,显示所有状态