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)