dev_forum
SylorHuang 6 years ago
parent 4b71fc1576
commit 5c74d71c94

@ -436,7 +436,7 @@ module ExercisesHelper
game_code = game_challenge game_code = game_challenge
code = game_code.try(:new_code) code = game_code.try(:new_code)
else else
code = git_fle_content(exercise_cha.shixun&.repo_path,cha_path) code = git_fle_content(game.myshixun.repo_path,cha_path)
end end
sx_option = { sx_option = {
:exercise_question_id => q.id, :exercise_question_id => q.id,

@ -29,7 +29,7 @@ json.shixun_detail do
if game.try(:lastest_code).blank? if game.try(:lastest_code).blank?
cha_path = challenge_path(shixun_challenge.challenge&.path) cha_path = challenge_path(shixun_challenge.challenge&.path)
latest_code = git_fle_content(shixun_challenge.shixun&.repo_path,cha_path) latest_code = git_fle_content(game&.myshixun.repo_path,cha_path)
else else
latest_code = game.try(:lastest_code) latest_code = game.try(:lastest_code)
end end

Loading…
Cancel
Save