瀏覽代碼

05/25/2021 02:54:46 PM MST

master
coldstar 3 年之前
父節點
當前提交
50729694ba
共有 1 個檔案被更改,包括 2 行新增3 行删除
  1. +2
    -3
      routes/baseActionsRouter.js

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

@@ -309,12 +309,11 @@ router.get("/address/:address", function(req, res) {

//res.locals.result = {};


const { spawn } = require("child_process");

//const ls = spawn("/usr/local/bin/vivo-cli -conf=/etc/masternodes/vivo_n1.conf", [" \'{\"addresses\": [\"" + address + "\"]}\'"]);
const ls = spawn("/usr/local/bin/vivo-cli", [" -conf=/etc/masternodes/vivo_n1.conf \'{\"addresses\": [\"" + address + "\"]}\'"]);

const ls = spawn("pwd", "");
//const ls = spawn("ls", "-lah");

ls.stdout.on("data", data => {
console.log(`stdout: ${data}`);


Loading…
取消
儲存