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