|
|
|
@ -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
|
|
|
|
|
|
|
|
|
|