|  |  |  | @ -4,7 +4,7 @@ class MyshixunsController < ApplicationController | 
			
		
	
		
			
				
					|  |  |  |  |   skip_before_filter :verify_authenticity_token, :only => [:training_task_status, :close_webssh, :code_runinng_message, :vnc] | 
			
		
	
		
			
				
					|  |  |  |  |   before_filter :require_login, :except => [:training_task_status, :close_webssh, :code_runinng_message, :vnc] | 
			
		
	
		
			
				
					|  |  |  |  |   before_filter :check_authentication, :except => [:training_task_status, :close_webssh, :mul_test_home, :mul_test_user, | 
			
		
	
		
			
				
					|  |  |  |  |                                                    :mul_test_myshixun, :mul_test_shixun, :mul_test_start, :code_runinng_message] | 
			
		
	
		
			
				
					|  |  |  |  |                                                    :mul_test_myshixun, :mul_test_shixun, :mul_test_start, :code_runinng_message, :vnc] | 
			
		
	
		
			
				
					|  |  |  |  |   before_filter :find_myshixun, :only => [:show, :myshixun_reset, :open_webssh, :sync_reset_time, :destroy, :search_file_list, :vnc] | 
			
		
	
		
			
				
					|  |  |  |  |   DCODES = %W(2 3 4 5 6 7 8 9 a b c f e f g h i j k l m n o p q r s t u v w x y z) | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
	
		
			
				
					|  |  |  | @ -357,7 +357,8 @@ class MyshixunsController < ApplicationController | 
			
		
	
		
			
				
					|  |  |  |  |     host = Redmine::Configuration['tomcat_php'] | 
			
		
	
		
			
				
					|  |  |  |  |     begin | 
			
		
	
		
			
				
					|  |  |  |  |     uri = "#{shixun_tomcat}/bridge/vnc/getvnc" | 
			
		
	
		
			
				
					|  |  |  |  |     params = {tpiID:@myshixun.id} | 
			
		
	
		
			
				
					|  |  |  |  |     shixun = @myshixun.shixun | 
			
		
	
		
			
				
					|  |  |  |  |     params = {tpiID: @myshixun.id, :containers => "#{Base64.urlsafe_encode64(container_limit(shixun.mirror_repositories))}"} | 
			
		
	
		
			
				
					|  |  |  |  |     res = uri_exec uri, params | 
			
		
	
		
			
				
					|  |  |  |  |     if res && res['code'].to_i != 0 | 
			
		
	
		
			
				
					|  |  |  |  |       raise("实训云平台繁忙(繁忙等级:99)") | 
			
		
	
	
		
			
				
					|  |  |  | 
 |