允许跳关

dev_course
daiao 5 years ago
parent 3ef6ae566a
commit e868f9eba1

@ -526,10 +526,10 @@ class ShixunsController < ApplicationController
@current_task = @current_task =
if params[:challenge_id] if params[:challenge_id]
game = games.where(challenge_id: params[:challenge_id]).take game = games.where(challenge_id: params[:challenge_id]).take
if game.status == 3 && !@shixun.task_pass if @shixun.task_pass || game.status != 3
tip_show_exception(-4, "关卡还未开启")
else
game game
else
current_myshixun.current_task(games)
end end
else else
current_myshixun.current_task(games) current_myshixun.current_task(games)

Loading…
Cancel
Save