From cc194dd20739c45fee95ef2abf55be5cfb687857 Mon Sep 17 00:00:00 2001 From: SylorHuang Date: Wed, 21 Aug 2019 17:22:30 +0800 Subject: [PATCH] =?UTF-8?q?=E7=89=88=E6=9C=AC=E5=BA=93=E5=BC=82=E5=B8=B8?= =?UTF-8?q?=E7=9A=84=E4=BF=AE=E5=A4=8D3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/exercises/_shixun_details.json.jbuilder | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/views/exercises/_shixun_details.json.jbuilder b/app/views/exercises/_shixun_details.json.jbuilder index 3625900d7..29a39a594 100644 --- a/app/views/exercises/_shixun_details.json.jbuilder +++ b/app/views/exercises/_shixun_details.json.jbuilder @@ -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