change chain

This commit is contained in:
sylor_huang@126.com
2020-06-09 18:55:09 +08:00
parent d586f526c9
commit 79641e859c
11 changed files with 114 additions and 101 deletions

View File

@@ -18,8 +18,10 @@ class Gitea::ChainService < ApplicationService
def get(url, params={})
conn.get do |req|
req.url = "#{request_url}"
req.body = params[:data].to_json
req.url "#{request_url}"
params.each_pair do |key, value|
req.params["#{key}"] = value
end
end
end