diff --git a/app/controllers/myshixuns_controller.rb b/app/controllers/myshixuns_controller.rb index 96f45d3a..68e4b4b0 100644 --- a/app/controllers/myshixuns_controller.rb +++ b/app/controllers/myshixuns_controller.rb @@ -358,7 +358,7 @@ class MyshixunsController < ApplicationController def vnc vnc_password = Redmine::Configuration['vnc'] shixun_tomcat = Redmine::Configuration['shixun_tomcat'] - host = Redmine::Configuration['tomcat_php'] + host = Redmine::Configuration['vnc_url'] begin uri = "#{shixun_tomcat}/bridge/vnc/getvnc" shixun = @myshixun.shixun @@ -368,7 +368,7 @@ class MyshixunsController < ApplicationController raise("实训云平台繁忙(繁忙等级:99)") end # url = host + ":" + res['port'] + "?password=" + vnc_password - url = host +":#{res['port']}/vnc.html" + url = "https://#{res['port']}.#{host}/vnc.html" render :json => {:url => url} rescue Exception => e logger.error(e)