|  |  | @ -963,7 +963,7 @@ class GamesController < ApplicationController | 
			
		
	
		
		
			
				
					
					|  |  |  |     begin |  |  |  |     begin | 
			
		
	
		
		
			
				
					
					|  |  |  |       shixun = game.myshixun.shixun |  |  |  |       shixun = game.myshixun.shixun | 
			
		
	
		
		
			
				
					
					|  |  |  |       shixun_tomcat = edu_setting('cloud_bridge') |  |  |  |       shixun_tomcat = edu_setting('cloud_bridge') | 
			
		
	
		
		
			
				
					
					|  |  |  |       #service_host = edu_setting('vnc_url') |  |  |  |       service_host = edu_setting('vnc_url') | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |       tpiGitURL = "#{edu_setting('git_address_domain')}/#{game.myshixun.repo_path}" |  |  |  |       tpiGitURL = "#{edu_setting('git_address_domain')}/#{game.myshixun.repo_path}" | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |       uri = "#{shixun_tomcat}/bridge/vnc/getvnc" |  |  |  |       uri = "#{shixun_tomcat}/bridge/vnc/getvnc" | 
			
		
	
	
		
		
			
				
					|  |  | @ -973,14 +973,15 @@ class GamesController < ApplicationController | 
			
		
	
		
		
			
				
					
					|  |  |  |       if res && res['code'].to_i != 0 |  |  |  |       if res && res['code'].to_i != 0 | 
			
		
	
		
		
			
				
					
					|  |  |  |         raise("实训云平台繁忙(繁忙等级:99)") |  |  |  |         raise("实训云平台繁忙(繁忙等级:99)") | 
			
		
	
		
		
			
				
					
					|  |  |  |       end |  |  |  |       end | 
			
		
	
		
		
			
				
					
					|  |  |  |       @vnc_url = res['showServer'] |  |  |  |       # @vnc_url = res['showServer'] | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |           # if request.subdomain == "pre-newweb" || request.subdomain == "test-newweb" |  |  |  |       @vnc_url = | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |           #   # 无域名版本 |  |  |  |           if request.subdomain == "pre-newweb" || request.subdomain == "test-newweb" | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |           #   "http://#{service_host}:#{res['port']}/vnc_lite.html?password=headless" |  |  |  |             # 无域名版本 | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |           # else |  |  |  |             "http://#{service_host}:#{res['port']}/vnc_lite.html?password=headless" | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |           #   # 有域名版本 |  |  |  |           else | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |           #   "https://#{res['port']}.#{service_host}/vnc_lite.html?password=headless" |  |  |  |             # 有域名版本 | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |           # end |  |  |  |             "https://#{res['port']}.#{service_host}/vnc_lite.html?password=headless" | 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |           end | 
			
		
	
		
		
			
				
					
					|  |  |  |       @vnc_evaluate = shixun.vnc_evaluate |  |  |  |       @vnc_evaluate = shixun.vnc_evaluate | 
			
		
	
		
		
			
				
					
					|  |  |  |     rescue Exception => e |  |  |  |     rescue Exception => e | 
			
		
	
		
		
			
				
					
					|  |  |  |       Rails.logger.error(e.message) |  |  |  |       Rails.logger.error(e.message) | 
			
		
	
	
		
		
			
				
					|  |  | 
 |