|
|
|
@ -338,9 +338,9 @@ class ApplicationController < ActionController::Base
|
|
|
|
|
# 如果代码窗口是隐藏的,则不用保存代码
|
|
|
|
|
return if myshixun.shixun.hide_code || myshixun.shixun.vnc
|
|
|
|
|
file_content = git_fle_content myshixun.repo_path, path
|
|
|
|
|
unless file_content.present?
|
|
|
|
|
raise("获取文件代码异常")
|
|
|
|
|
end
|
|
|
|
|
#unless file_content.present?
|
|
|
|
|
# raise("获取文件代码异常")
|
|
|
|
|
#end
|
|
|
|
|
logger.info("#######game_id:#{game_id}, file_content:#{file_content}")
|
|
|
|
|
game_code = GameCode.where(:game_id => game_id, :path => path).first
|
|
|
|
|
if game_code.nil?
|
|
|
|
|