|
|
|
@ -357,7 +357,8 @@ class MyshixunsController < ApplicationController
|
|
|
|
|
host = Redmine::Configuration['tomcat_php']
|
|
|
|
|
begin
|
|
|
|
|
uri = "#{shixun_tomcat}/bridge/vnc/getvnc"
|
|
|
|
|
params = {tpiID:@myshixun.id}
|
|
|
|
|
shixun = myshixun.shixun
|
|
|
|
|
params = {tpiID: @myshixun.id, :containers => "#{Base64.urlsafe_encode64(container_limit(shixun.mirror_repositories))}"}
|
|
|
|
|
res = uri_exec uri, params
|
|
|
|
|
if res && res['code'].to_i != 0
|
|
|
|
|
raise("实训云平台繁忙(繁忙等级:99)")
|
|
|
|
|