修复冒险完成后不回收奖励就进行炼金会丢失奖励的问题

This commit is contained in:
2025-10-31 10:30:29 +08:00
parent 4bddd4339f
commit 6f05ca98f1
2 changed files with 22 additions and 4 deletions

View File

@@ -92,9 +92,9 @@ class AlchemyGame(BaseGame):
end_time = start_time + cost_time * 60
remaining_seconds = end_time - current_time
# 如果冒险已完成,自动清理状态,允许炼金
# 如果冒险已完成,提示用户先回收奖励,不允许炼金
if remaining_seconds <= 0:
self.db.delete_game_state(0, user_id, 'adventure')
return f"❌ 你有待回收的冒险奖励!\n\n💡 请先使用 `.adventure` 回收冒险奖励后再进行炼金。"
else:
# 冒险未完成,返回错误提示
remaining_minutes = remaining_seconds // 60