dev_static
daiao 5 years ago
parent 6cccd84ef6
commit b64847d7cf

@ -1,4 +1,5 @@
class Admins::CustomersController < Admins::BaseController
skip_before_action :check_sign
helper_method :current_partner
def index

@ -896,6 +896,15 @@ class ShixunsController < ApplicationController
render_ok
end
def upload_git_folder
raise("文件夹名不合法") if params[:folder_name] =~ /^[^\\\/\?\*\"\>\<\:\|]*$/
end
def delete_git_file
end
def add_collaborators
member_ids = "(" + @shixun.shixun_members.map(&:user_id).join(',') + ")"
user_name = "%#{params[:user_name].to_s.strip}%"

@ -8,7 +8,8 @@ module JupyterService
uri = "#{shixun_tomcat}/bridge/jupyter/get"
tpiID = "tpm#{shixun.id}"
mount = shixun.data_sets.present?
params = {tpiID: tpiID, identifier: shixun.identifier, needMount: mount, gitUrl: '',
gitUrl = "#{edu_setting('git_address_domain')}/#{shixun.repo_path}"
params = {tpiID: tpiID, identifier: shixun.identifier, needMount: mount, gitUrl: gitUrl,
:containers => "#{Base64.urlsafe_encode64(shixun_container_limit(shixun))}"}
logger.info "test_juypter: uri->#{uri}, params->#{params}"

Loading…
Cancel
Save