|
|
@ -72,7 +72,7 @@ class GamesController < ApplicationController
|
|
|
|
if res && res['code'].to_i != 0
|
|
|
|
if res && res['code'].to_i != 0
|
|
|
|
raise("实训云平台繁忙(繁忙等级:99)")
|
|
|
|
raise("实训云平台繁忙(繁忙等级:99)")
|
|
|
|
end
|
|
|
|
end
|
|
|
|
@url = "http://#{service_host}:#{res['port']}}/vnc_lite.html?password=headless"
|
|
|
|
@vnc_url = "http://#{service_host}:#{res['port']}}/vnc_lite.html?password=headless"
|
|
|
|
rescue Exception => e
|
|
|
|
rescue Exception => e
|
|
|
|
Rails.logger.error(e.message)
|
|
|
|
Rails.logger.error(e.message)
|
|
|
|
end
|
|
|
|
end
|
|
|
|