瀏覽代碼

05/25/2021 03:21:44 PM MST

master
coldstar 3 年之前
父節點
當前提交
135b645ad2
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. +2
    -1
      routes/baseActionsRouter.js

+ 2
- 1
routes/baseActionsRouter.js 查看文件

@@ -314,7 +314,8 @@ router.get("/address/:address", function(req, res) {


const { exec } = require('child_process');
var yourscript = exec('/usr/local/bin/vivo-cli", [" -conf=/etc/masternodes/vivo_n1.conf getaddressbalance \'{\"addresses\": [\"" + address + "\"]}\'',
//var yourscript = exec('/usr/local/bin/vivo-cli -conf=/etc/masternodes/vivo_n1.conf getaddressbalance \'{\"addresses\": [\"" + address + "\"]}\'',
var yourscript = exec('whoami',
(error, stdout, stderr) => {
console.log(stdout);
console.log(stderr);


Loading…
取消
儲存