From 5ec9f7a6bd30536d60ac01d82615f790f2f324dc Mon Sep 17 00:00:00 2001 From: Rrrrrrray <28804884+Rrrrrrray@users.noreply.github.com> Date: Sat, 15 Mar 2025 06:08:11 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=88=20perf:=20=E4=B8=8D=E6=B8=B2?= =?UTF-8?q?=E6=9F=93=E6=97=B6=EF=BC=8C=E9=9D=99=E9=BB=98=E4=B8=8B=E8=BD=BD?= =?UTF-8?q?=E8=B5=84=E6=BA=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/panel.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/apps/panel.js b/apps/panel.js index 398a01b..a215fe5 100644 --- a/apps/panel.js +++ b/apps/panel.js @@ -8,7 +8,7 @@ import { getPanelListOrigin, } from '../lib/avatar.js'; import settings from '../lib/settings.js'; -import _ from 'lodash'; +import _, { compact } from 'lodash'; import { rulePrefix } from '../lib/common.js'; export class Panel extends ZZZPlugin { @@ -161,8 +161,11 @@ export class Panel extends ZZZPlugin { updatePanelData(uid, [data]); } const timer = setTimeout(() => { - if (this?.reply) { - this.reply('查询成功,正在下载图片资源,请稍候。'); + const msg = '查询成功,正在下载图片资源,请稍候。' + if (this?.reply && needImg) { + this.reply(msg); + } else { + logger.mark(msg) } }, 5000); const parsedData = formatPanelData(data);