Commit 7025c9b4 by lanrion

clean codes

parent d88220fe
...@@ -63,7 +63,7 @@ module WeixinAuthorize ...@@ -63,7 +63,7 @@ module WeixinAuthorize
# Refactor # Refactor
def http_post(url, options={}, endpoint="plain") def http_post(url, options={}, endpoint="plain")
post_api_url = endpoint_url(endpoint) + url + "?access_token=#{get_access_token}" post_api_url = endpoint_url(endpoint) + url + "?access_token=#{get_access_token}"
JSON.parse(RestClient.post(post_api_url ,options)) JSON.parse(RestClient.post(post_api_url, options))
end end
def endpoint_url(endpoint) def endpoint_url(endpoint)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment