mirror of
https://github.com/yoimiya-kokomi/miao-plugin.git
synced 2025-02-01 16:05:53 +00:00
去除更新面板CD时的错误报错
This commit is contained in:
parent
9f9385dfe1
commit
ce47f9d8e7
@ -20,7 +20,8 @@ const ProfileList = {
|
|||||||
await player.refreshProfile(2)
|
await player.refreshProfile(2)
|
||||||
|
|
||||||
if (!player?._update?.length) {
|
if (!player?._update?.length) {
|
||||||
e.reply('获取角色面板数据失败,请确认角色已在游戏内橱窗展示,并开放了查看详情。设置完毕后请5分钟后再进行请求~')
|
e._isReplyed || e.reply('获取角色面板数据失败,请确认角色已在游戏内橱窗展示,并开放了查看详情。设置完毕后请5分钟后再进行请求~')
|
||||||
|
e._isReplyed = true
|
||||||
} else {
|
} else {
|
||||||
let ret = {}
|
let ret = {}
|
||||||
lodash.forEach(player._update, (id) => {
|
lodash.forEach(player._update, (id) => {
|
||||||
@ -30,7 +31,8 @@ const ProfileList = {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
if (ret.length === 0) {
|
if (ret.length === 0) {
|
||||||
e.reply('获取角色面板数据失败,未能请求到角色数据。请确认角色已在游戏内橱窗展示,并开放了查看详情。设置完毕后请5分钟后再进行请求~')
|
e._isReplyed || e.reply('获取角色面板数据失败,未能请求到角色数据。请确认角色已在游戏内橱窗展示,并开放了查看详情。设置完毕后请5分钟后再进行请求~')
|
||||||
|
e._isReplyed = true
|
||||||
} else {
|
} else {
|
||||||
e.newChar = ret
|
e.newChar = ret
|
||||||
return await ProfileList.render(e)
|
return await ProfileList.render(e)
|
||||||
|
Loading…
Reference in New Issue
Block a user