|
|
@ -216,7 +216,8 @@ class MyshixunsController < ApplicationController
|
|
|
|
begin
|
|
|
|
begin
|
|
|
|
shixun_tomcat = edu_setting('tomcat_webssh')
|
|
|
|
shixun_tomcat = edu_setting('tomcat_webssh')
|
|
|
|
uri = "#{shixun_tomcat}/bridge/webssh/getConnectInfo"
|
|
|
|
uri = "#{shixun_tomcat}/bridge/webssh/getConnectInfo"
|
|
|
|
params = {tpiID:@myshixun.id, podType:@myshixun.shixun.try(:webssh),
|
|
|
|
# 由于中间层采用混合云的方式,因为local参数表示在有文件生成的实训是在本地生成,还是在其他云端生成评测文件
|
|
|
|
|
|
|
|
params = {tpiID:@myshixun.id, podType:@myshixun.shixun.try(:webssh), local: @myshixun.shixun.show_type != -1,
|
|
|
|
containers:(Base64.urlsafe_encode64(shixun_container_limit @myshixun.shixun))}
|
|
|
|
containers:(Base64.urlsafe_encode64(shixun_container_limit @myshixun.shixun))}
|
|
|
|
res = uri_post uri, params
|
|
|
|
res = uri_post uri, params
|
|
|
|
if res && res['code'].to_i != 0
|
|
|
|
if res && res['code'].to_i != 0
|
|
|
|