From 7010ca84128869a63faefe034c87aac67223fb67 Mon Sep 17 00:00:00 2001 From: daiao <358551898@qq.com> Date: Sun, 29 Sep 2019 16:03:34 +0800 Subject: [PATCH] =?UTF-8?q?=E9=80=9A=E5=85=B3=E4=BB=A3=E7=A0=81=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/application_controller.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index 459ba5384..72405739c 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -354,8 +354,8 @@ class ApplicationController < ActionController::Base # 通关后,把最后一次成功的代码存到数据库 # type 0 创始内容, 1 最新内容 def game_passed_code(path, myshixun, game_id) - # 如果代码窗口是隐藏的,则不用保存代码 - return if myshixun.shixun.hide_code + # 如果代码窗口是隐藏的或者是vnc实训,则不用保存通关代码 + return if myshixun.shixun.hide_code || myshixun.shixun.vnc file_content = git_fle_content myshixun.repo_path, path unless file_content.present? raise("获取文件代码异常")