|
|
@ -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(game&.myshixun.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
|
|
|
|