diff --git a/app/services/games_service.rb b/app/services/games_service.rb index 2b1e9b80..57d0e829 100644 --- a/app/services/games_service.rb +++ b/app/services/games_service.rb @@ -43,7 +43,7 @@ class GamesService # 高性能取上一关、下一关 prev_game = Game.prev_identifier(shixun.id, game.myshixun_id, game_challenge.position) - next_game = if current_user.is_certification_teacher || shixun_manager(shixun, current_user) || game.status == 2 + next_game = if current_user.is_certification_teacher || shixun_manager(shixun, current_user) || game.status || shixun.task_pass Game.next_game(shixun.id, game.myshixun_id, game_challenge.position).try(:identifier) end