Преглед изворни кода

05/25/2021 03:29:05 PM MST

master
coldstar пре 3 година
родитељ
комит
5b45bf81dd
1 измењених фајлова са 2 додато и 2 уклоњено
  1. +2
    -2
      routes/baseActionsRouter.js

+ 2
- 2
routes/baseActionsRouter.js Прегледај датотеку

@@ -311,13 +311,13 @@ router.get("/address/:address", function(req, res) {

console.log("address is:" + address);

console.log('/usr/local/bin/vivo-cli -conf=/etc/masternodes/vivo_n1.conf getaddressbalance \'{\"addresses\": [\"" + address + "\"]}\'');
console.log("/usr/local/bin/vivo-cli -conf=/etc/masternodes/vivo_n1.conf getaddressbalance \'{\"addresses\": [\"" + address + "\"]}\'");

res.locals.result = {};


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);


Loading…
Откажи
Сачувај