dev_aliyun2
daiao 5 years ago committed by harry
parent 06c8797a3a
commit 98caf1d7dd

@ -973,14 +973,14 @@ 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 = @vnc_url = res['showServer']
if request.subdomain == "pre-newweb" || request.subdomain == "test-newweb" # if request.subdomain == "pre-newweb" || request.subdomain == "test-newweb"
# 无域名版本 # # 无域名版本
"http://#{service_host}:#{res['port']}/vnc_lite.html?password=headless" # "http://#{service_host}:#{res['port']}/vnc_lite.html?password=headless"
else # else
# 有域名版本 # # 有域名版本
"https://#{res['port']}.#{service_host}/vnc_lite.html?password=headless" # "https://#{res['port']}.#{service_host}/vnc_lite.html?password=headless"
end # 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)

Loading…
Cancel
Save