Skip to content

Commit

Permalink
fix: 鸣潮抽卡记录无更新判断错误
Browse files Browse the repository at this point in the history
  • Loading branch information
TomyJan committed Jan 2, 2025
1 parent c0e9c92 commit aa1411e
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions model/mcGachaData.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit aa1411e

Please sign in to comment.