Skip to content

Commit

Permalink
fix a bug
Browse files Browse the repository at this point in the history
  • Loading branch information
classicalliu committed Jul 25, 2018
1 parent 7bb56d8 commit e609c6e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/cita_sync/api.rb
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class << self
# @param jsonrpc [String] jsonrpc version, default with "2.0"
# @param id [Integer] id number
# @return [Hash, String, Array] json decode to hash
def call_rpc(method, params: params, jsonrpc: jsonrpc, id: id)
def call_rpc(method, params: [], jsonrpc: "2.0", id: 83)
resp = CitaSync::Basic.post(method, params: params, jsonrpc: jsonrpc, id: id)
Oj.load(resp.body)
end
Expand Down

0 comments on commit e609c6e

Please sign in to comment.