From ce47f9d8e735884fe75d430f3f4722548e251646 Mon Sep 17 00:00:00 2001 From: Kokomi <102026640+yoimiya-kokomi@users.noreply.github.com> Date: Sun, 19 Feb 2023 10:53:51 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=BB=E9=99=A4=E6=9B=B4=E6=96=B0=E9=9D=A2?= =?UTF-8?q?=E6=9D=BFCD=E6=97=B6=E7=9A=84=E9=94=99=E8=AF=AF=E6=8A=A5?= =?UTF-8?q?=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/profile/ProfileList.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/apps/profile/ProfileList.js b/apps/profile/ProfileList.js index 12d6ff38..110d20ef 100644 --- a/apps/profile/ProfileList.js +++ b/apps/profile/ProfileList.js @@ -20,7 +20,8 @@ const ProfileList = { await player.refreshProfile(2) if (!player?._update?.length) { - e.reply('获取角色面板数据失败,请确认角色已在游戏内橱窗展示,并开放了查看详情。设置完毕后请5分钟后再进行请求~') + e._isReplyed || e.reply('获取角色面板数据失败,请确认角色已在游戏内橱窗展示,并开放了查看详情。设置完毕后请5分钟后再进行请求~') + e._isReplyed = true } else { let ret = {} lodash.forEach(player._update, (id) => { @@ -30,7 +31,8 @@ const ProfileList = { } }) if (ret.length === 0) { - e.reply('获取角色面板数据失败,未能请求到角色数据。请确认角色已在游戏内橱窗展示,并开放了查看详情。设置完毕后请5分钟后再进行请求~') + e._isReplyed || e.reply('获取角色面板数据失败,未能请求到角色数据。请确认角色已在游戏内橱窗展示,并开放了查看详情。设置完毕后请5分钟后再进行请求~') + e._isReplyed = true } else { e.newChar = ret return await ProfileList.render(e)