This commit is contained in:
cxt 2019-07-27 14:49:05 +08:00
parent f485831956
commit d87c8e7eb1
2 changed files with 4 additions and 2 deletions

View File

@ -566,7 +566,7 @@ update
def che_request
begin
work_space_id = Trustie::Che.send()
work_space_id = Trustie::Che.che_request()
rescue Exception => e
raise(e.backtrace.join("\n"))
end

View File

@ -5,8 +5,9 @@ require 'uri'
module Trustie
module Che
def self.send()
def self.che_request()
begin
Rails.logger.info("####################che send start")
o = send_to_che()
Rails.logger.info("#############send_che_return: #{o}")
# if o["code"] != 0
@ -125,6 +126,7 @@ module Trustie
http.verify_mode = OpenSSL::SSL::VERIFY_NONE
http.use_ssl = true
begin
Rails.logger.info("#############info: #{send_che_uri.request_uri}")
request = Net::HTTP::Post.new(send_che_uri.request_uri)
request.set_form_data(params)
request['Content-Type'] = 'application/x-www-form-urlencoded;charset=utf-8'