fix uri parse problem
This commit is contained in:
parent
06a8b9073e
commit
ad8bb72b07
|
@ -96,9 +96,8 @@ class Panel::Ask::BackEnd::AskRepliesController < OrbitBackendController
|
||||||
require 'json'
|
require 'json'
|
||||||
|
|
||||||
uri_path = "/panel/ask/back_end/ask_requests/transfer_request"
|
uri_path = "/panel/ask/back_end/ask_requests/transfer_request"
|
||||||
uri = URI.parse("http://" + dep_dns + uri_path)
|
http = Net::HTTP.new(dep_dns,80)
|
||||||
http = Net::HTTP.new(uri.host, uri.port)
|
request = Net::HTTP::Post.new(uri_path)
|
||||||
request = Net::HTTP::Post.new(uri.request_uri)
|
|
||||||
|
|
||||||
body = {
|
body = {
|
||||||
# 'auth_token' => '3kjlfksjDFJ',
|
# 'auth_token' => '3kjlfksjDFJ',
|
||||||
|
|
|
@ -80,8 +80,8 @@ $(document).ready(function() {
|
||||||
<tr>
|
<tr>
|
||||||
<td colspan="5" class="dept_options">
|
<td colspan="5" class="dept_options">
|
||||||
<div class="dept_options">
|
<div class="dept_options">
|
||||||
<%= check_box("school", "depts", {:multiple => true}, 'ntu_ga_test_p.tp.rulingcom.com:80', nil) %><%= label_tag("ntu_ga_test_p.tp.rulingcom.com:80", "測試站總務處 (ntu_ga_test_p)") %>
|
<%= check_box("school", "depts", {:multiple => true}, 'ntu_ga_test_p.tp.rulingcom.com', nil) %><%= label_tag("ntu_ga_test_p.tp.rulingcom.com", "測試站總務處 (ntu_ga_test_p)") %>
|
||||||
<%= check_box("school", "depts", {:multiple => true}, 'ntu_ga_test.tp.rulingcom.com:80', nil) %><%= label_tag("ntu_ga_test.tp.rulingcom.com:80", "測試站總務處經管組 (ntu_ga_test)") %>
|
<%= check_box("school", "depts", {:multiple => true}, 'ntu_ga_test.tp.rulingcom.com', nil) %><%= label_tag("ntu_ga_test.tp.rulingcom.com", "測試站總務處經管組 (ntu_ga_test)") %>
|
||||||
<!-- <%= check_box("school", "depts", {:multiple => true}, (request.host + ":3000"), nil) %><%= label_tag((request.host + ":3000"), "測試站3000") %>
|
<!-- <%= check_box("school", "depts", {:multiple => true}, (request.host + ":3000"), nil) %><%= label_tag((request.host + ":3000"), "測試站3000") %>
|
||||||
<%= check_box("school", "depts", {:multiple => true}, (request.host + ":4000"), nil) %><%= label_tag((request.host + ":4000"), "測試站4000") %> -->
|
<%= check_box("school", "depts", {:multiple => true}, (request.host + ":4000"), nil) %><%= label_tag((request.host + ":4000"), "測試站4000") %> -->
|
||||||
<%= check_box("school", "depts", {:multiple => true}, "", nil) %><%= label_tag(:dep1, "總務長室暨總務處秘書室") %>
|
<%= check_box("school", "depts", {:multiple => true}, "", nil) %><%= label_tag(:dep1, "總務長室暨總務處秘書室") %>
|
||||||
|
|
Loading…
Reference in New Issue