chromesetting
guange 5 years ago
parent c2ed47a736
commit d6d1e04084

@ -7,18 +7,18 @@ class MainController < ApplicationController
def test_juypter def test_juypter
#打开tpm - juypter接口 #打开tpm - juypter接口
shixun = Shixun.find() shixun = Shixun.find(3575)
shixun_tomcat = edu_setting('cloud_bridge') shixun_tomcat = edu_setting('cloud_bridge')
uri = "#{shixun_tomcat}/bridge/jupyter/get" uri = "#{shixun_tomcat}/bridge/jupyter/get"
params = {tpiID: "tpm_#{shixun.id}", :containers => "#{Base64.urlsafe_encode64(shixun_container_limit(shixun))}"} params = {tpiID: "tpm_#{shixun.id}", :containers => "#{Base64.urlsafe_encode64(shixun_container_limit(shixun))}"}
logger.debug "test_juypter: uri->#{uri}, params->#{params}" logger.info "test_juypter: uri->#{uri}, params->#{params}"
res = uri_post uri, params res = uri_post uri, params
logger.info "test_juypter: #{res}" logger.info "test_juypter: #{res}"
res.to_json render plain: res.to_json
end end
end end
Loading…
Cancel
Save