mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-03 03:40:49 +08:00
change chain
This commit is contained in:
@@ -13,11 +13,11 @@ class Gitea::Chain::ChainGetService < Gitea::ChainService
|
||||
private
|
||||
|
||||
def request_params
|
||||
Hash.new.merge(data: params["chain_params"])
|
||||
params[:chain_params]
|
||||
end
|
||||
|
||||
def url
|
||||
chain_type = params["type"].to_s
|
||||
chain_type = params[:type].to_s
|
||||
case chain_type
|
||||
when "query"
|
||||
"/repos/amount/query".freeze
|
||||
|
||||
@@ -13,11 +13,11 @@ class Gitea::Chain::ChainPostService < Gitea::ChainService
|
||||
private
|
||||
|
||||
def request_params
|
||||
Hash.new.merge(data: params["chain_params"])
|
||||
Hash.new.merge(data: params[:chain_params])
|
||||
end
|
||||
|
||||
def url
|
||||
chain_type = params["type"].to_s
|
||||
chain_type = params[:type].to_s
|
||||
case chain_type
|
||||
when "create"
|
||||
"/repos/create".freeze
|
||||
|
||||
Reference in New Issue
Block a user