vnc的url调整

dev_library
daiao 6 years ago
parent 36a631e060
commit cd7db688d2

@ -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)

Loading…
Cancel
Save