打印信息

This commit is contained in:
cxt 2019-07-27 16:34:26 +08:00
parent c229f4a91c
commit c24ae86a6f
2 changed files with 4 additions and 4 deletions

View File

@ -654,7 +654,7 @@ module ProjectsHelper
"defaultEnv": "default",
"name": "create-from-api",
"links": []
}.to_json
}
http = Net::HTTP.new(send_che_uri.host, send_che_uri.port)
# http.verify_mode = OpenSSL::SSL::VERIFY_NONE
@ -663,7 +663,7 @@ module ProjectsHelper
Rails.logger.info("#############info: #{send_che_uri.request_uri}")
Rails.logger.info("#############params: #{params}")
request = Net::HTTP::Post.new(send_che_uri.request_uri)
request.set_form_data(params)
request.body = params.to_json
request['Content-Type'] = 'application/json;charset=utf-8'
response = http.start { |http| http.request(request) }
ActiveSupport::JSON.decode(response.body)

View File

@ -30,9 +30,9 @@
<%= link_to "代码分析结果", project_quality_analysis_path(:project_id => @project.id), :class => "btn_zipdown fl ml10" %>
<% end %>
<% if @project.id == 3993 %>
<%# if @project.id == 3993 %>
<a href="<%= che_request_project_path(@project) %>" data-remote="true" class="btn_zipdown fl ml10">CHE环境</a>
<% end %>
<%# end %>
<div class="fr ">
<label class="pro-fenzhi-label fl">克隆网址</label>