From 05b66d5c1ecd5a43bb7336449b92708b1588d4fb Mon Sep 17 00:00:00 2001 From: daiao <358551898@qq.com> Date: Fri, 26 Jul 2019 10:59:05 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=8B=E8=AF=95=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/helpers/shixuns_helper.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/helpers/shixuns_helper.rb b/app/helpers/shixuns_helper.rb index 71bc833d4..c682a3dd3 100644 --- a/app/helpers/shixuns_helper.rb +++ b/app/helpers/shixuns_helper.rb @@ -126,12 +126,14 @@ module ShixunsHelper challenge_program_name = [] shixun.challenges.map(&:exec_path).each do |exec_path| challenge_program_name << "\"#{exec_path}\"" + logger.info("----mirror_name: #{shixun.main_mirror_name.try(:first)}") if shixun.main_mirror_name.try(:first) == "Java" if exec_path.nil? || exec_path.split("src/")[1].nil? source = "\"\"" else source = "\"#{exec_path.split("src/")[1].split(".java")[0]}\"" end + logger.info("----source: #{source}") source_class_name << source.gsub("/", ".") if source.present? elsif shixun.main_mirror_name.try(:first) == "C#" if exec_path.nil? || exec_path.split(".")[1].nil?