From aa1411e3ff5f9dcf0437c87bb1816fd66641dd62 Mon Sep 17 00:00:00 2001 From: TomyJan Date: Thu, 2 Jan 2025 13:07:07 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E9=B8=A3=E6=BD=AE=E6=8A=BD=E5=8D=A1?= =?UTF-8?q?=E8=AE=B0=E5=BD=95=E6=97=A0=E6=9B=B4=E6=96=B0=E5=88=A4=E6=96=AD?= =?UTF-8?q?=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- model/mcGachaData.js | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/model/mcGachaData.js b/model/mcGachaData.js index e136b6d..da05351 100644 --- a/model/mcGachaData.js +++ b/model/mcGachaData.js @@ -103,9 +103,14 @@ export default class mcGachaData { kuroLogger.warn('撤回消息失败:', JSON.stringify(err)) } } - let saveFailedMsg = await this.e.reply( - `QQ ${this.e.user_id} 的游戏 uid ${gameUid} 抽卡更新记录成功但保存失败: \n${gachaUpdateRet} \n将展示历史抽卡记录 ` - ) + let saveFailedMsg + if (gachaUpdateRet == 'ERROR_NO_NEWER_RECORD') { + saveFailedMsg = await this.e.reply(`QQ ${this.e.user_id} 的游戏 uid ${gameUid} 没有更新的抽卡记录啦, 晚点再来试试吧~`) + } else { + saveFailedMsg = await this.e.reply( + `QQ ${this.e.user_id} 的游戏 uid ${gameUid} 抽卡更新记录成功但保存失败: \n${gachaUpdateRet} \n将展示历史抽卡记录 ` + ) + } setTimeout(() => { if (saveFailedMsg) { try {