|
|
|
@ -32,7 +32,9 @@ json.shixun_detail do
|
|
|
|
|
if game.try(:lastest_code).blank?
|
|
|
|
|
cha_path = challenge_path(shixun_challenge.challenge&.path)
|
|
|
|
|
latest_code = git_fle_content(game.myshixun.repo_path,cha_path)
|
|
|
|
|
Rails.logger.info("#######_______latest_code______##########################{latest_code.present?}")
|
|
|
|
|
if latest_code.to_s == "true"
|
|
|
|
|
latest_code = ""
|
|
|
|
|
end
|
|
|
|
|
else
|
|
|
|
|
latest_code = game.try(:lastest_code)
|
|
|
|
|
end
|
|
|
|
|