打印信息
This commit is contained in:
parent
c229f4a91c
commit
c24ae86a6f
|
@ -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)
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue