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