|  |  | @ -354,8 +354,8 @@ class ApplicationController < ActionController::Base | 
			
		
	
		
		
			
				
					
					|  |  |  | 	# 通关后,把最后一次成功的代码存到数据库 |  |  |  | 	# 通关后,把最后一次成功的代码存到数据库 | 
			
		
	
		
		
			
				
					
					|  |  |  | 	# type 0 创始内容, 1 最新内容 |  |  |  | 	# type 0 创始内容, 1 最新内容 | 
			
		
	
		
		
			
				
					
					|  |  |  | 	def game_passed_code(path, myshixun, game_id) |  |  |  | 	def game_passed_code(path, myshixun, game_id) | 
			
		
	
		
		
			
				
					
					|  |  |  | 		# 如果代码窗口是隐藏的,则不用保存代码 |  |  |  | 		# 如果代码窗口是隐藏的或者是vnc实训,则不用保存通关代码 | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  | 		return if myshixun.shixun.hide_code |  |  |  | 		return if myshixun.shixun.hide_code || myshixun.shixun.vnc | 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
			
				
					
					|  |  |  | 		file_content = git_fle_content myshixun.repo_path, path |  |  |  | 		file_content = git_fle_content myshixun.repo_path, path | 
			
		
	
		
		
			
				
					
					|  |  |  | 		unless file_content.present? |  |  |  | 		unless file_content.present? | 
			
		
	
		
		
			
				
					
					|  |  |  | 			raise("获取文件代码异常") |  |  |  | 			raise("获取文件代码异常") | 
			
		
	
	
		
		
			
				
					|  |  | 
 |