开启关卡有问题

dev_course
daiao 6 years ago
parent 233965ddca
commit 21c8e0eae8

@ -525,7 +525,7 @@ class ShixunsController < ApplicationController
# 如果实训允许跳关传参params[:challenge_id]跳入具体的关卡
@current_task =
if params[:challenge_id] && @shixun.task_pass
current_myshixun.games.where(challenge_id: params[:challenge_id]).take
games.where(challenge_id: params[:challenge_id]).take
else
current_myshixun.current_task(games)
end

Loading…
Cancel
Save