mirror of
https://github.com/gnh1201/welsonjs.git
synced 2024-11-26 15:31:42 +00:00
Update catproxy.js
This commit is contained in:
parent
2e9143c220
commit
8a935345c5
|
@ -34,7 +34,7 @@ function CatProxyClient(url) {
|
|||
return;
|
||||
}
|
||||
}
|
||||
this.exec = function() {
|
||||
this.exec = function(params) {
|
||||
var args = Array.from(arguments);
|
||||
var rpc = JSONRPC2.create(env.target);
|
||||
var result;
|
||||
|
@ -51,7 +51,7 @@ function CatProxyClient(url) {
|
|||
"query": query
|
||||
}, null);
|
||||
} else {
|
||||
result = rpc.invoke(env.method, {}, null);
|
||||
result = rpc.invoke(env.method, params, null);
|
||||
}
|
||||
|
||||
return result;
|
||||
|
|
Loading…
Reference in New Issue
Block a user