dev_forum
jingquan huang 6 years ago
parent 4435939a60
commit b31b3b939c

@ -528,6 +528,14 @@ class ShixunsController < ApplicationController
tip_show_exception("/myshixuns/#{current_myshixun.try(:identifier)}/reset_my_game")
end
if current_myshixun.repo_name.nil?
g = Gitlab.client
repo_name = g.project(current_myshixun.gpid).try(:path_with_namespace)
current_myshixun.update_column(:repo_name, repo_name)
end
# 如果存在实训,则直接进入实训
# 如果实训允许跳关传参params[:challenge_id]跳入具体的关卡
@current_task =

Loading…
Cancel
Save