mirror of
https://github.com/ZZZure/ZZZ-Plugin.git
synced 2025-12-15 12:47:48 +00:00
%更新展柜面板仅在更新成功时设置冷却
This commit is contained in:
parent
1bbfb8cf0f
commit
0c53e71af6
1 changed files with 1 additions and 1 deletions
|
|
@ -72,8 +72,8 @@ export class Panel extends ZZZPlugin {
|
|||
logger.warn(`Enka服务调用失败:`, data)
|
||||
return this.reply(`Enka服务调用失败:${data.message}`)
|
||||
}
|
||||
await redis.set(`ZZZ:PANEL:${uid}:LASTTIME`, Date.now())
|
||||
if (typeof data === 'object') {
|
||||
await redis.set(`ZZZ:PANEL:${uid}:LASTTIME`, Date.now())
|
||||
const { playerInfo, panelList } = data
|
||||
if (!panelList.length) {
|
||||
return this.reply('面板列表为空,请确保已于游戏中展示角色')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue