diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index 459ba5384..b539a0c68 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -355,7 +355,7 @@ class ApplicationController < ActionController::Base # type 0 创始内容, 1 最新内容 def game_passed_code(path, myshixun, game_id) # 如果代码窗口是隐藏的,则不用保存代码 - return if myshixun.shixun.hide_code + return if myshixun.shixun.hide_code || myshixun.shixun.vnc file_content = git_fle_content myshixun.repo_path, path unless file_content.present? raise("获取文件代码异常")