Merge branch 'dev_aliyun' of https://bdgit.educoder.net/Hjqreturn/educoder into dev_aliyun

dev_hs
杨树林 5 years ago
commit 9a02b61d0b

@ -29,7 +29,6 @@ module GitCommon
def file_content
@content = git_fle_content @repo_path, @path
Rails.logger.info("##############_____@content.present?___________########################{@content.present?}")
end
# 版本库提交记录

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

@ -9,6 +9,7 @@ json.start_date @course.start_date
json.end_date @course.end_date
json.is_public @course.is_public
json.course_module_types @course.course_modules.where(hidden: 0).pluck(:module_type)
json.course_module_names @course.course_modules.where(hidden: 0).pluck(:module_name)
json.authentication @course.authentication
json.professional_certification @course.professional_certification
json.subject_id @course.subject_id

@ -32,6 +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.present?}")
else
latest_code = game.try(:lastest_code)
end

Loading…
Cancel
Save