版本库异常的修复测试2

dev_hs
SylorHuang 6 years ago
parent cac35d0c74
commit 6caaea4a09

@ -34,7 +34,7 @@ module GitHelper
rescue Exception => e
Rails.logger.error(e.message)
normal_status(-1,"文档内容获取异常")
Rails.logger.error("#####__________文档内容获取异常")
# raise Educoder::TipException.new("文档内容获取异常")
end
end

@ -32,7 +32,7 @@ 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}")
Rails.logger.info("#######_______latest_code______##########################{latest_code.present?}")
else
latest_code = game.try(:lastest_code)
end

Loading…
Cancel
Save