瀏覽代碼

05/25/2021 12:09:17 PM MST

master
coldstar 3 年之前
父節點
當前提交
babf05d218
共有 1 個文件被更改,包括 4 次插入4 次删除
  1. +4
    -4
      app/rpcApi.js

+ 4
- 4
app/rpcApi.js 查看文件

@@ -432,11 +432,11 @@ function getBalanceFromAddress(rpcClient, address) {
console.log("getaddressbalance \'{\"addresses\": [\"" + address + "\"]}\'");

return new Promise(function(resolve, reject) {
client.cmd("getaddressbalance \'{\"addresses\": [\"" + address + "\"]}\'", "", function(err2, result2, resHeaders2) {
if (err2) {
console.log("Error 3017hfwe0f: " + err2);
client.cmd("getaddressbalance", " \'{\"addresses\": [\"" + address + "\"]}\'", function(err, result, resHeaders) {
if (err) {
console.log("Error 3017hfwe0f: " + err);

reject(err2);
reject(err);

return;
}


Loading…
取消
儲存