允许跳关

dev_course
daiao 5 years ago
parent 3ef6ae566a
commit e868f9eba1

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

Loading…
Cancel
Save