Sfoglia il codice sorgente

新增-新策略对应 获取机器人状态接口

hl 5 mesi fa
parent
commit
04e8618576
1 ha cambiato i file con 2 aggiunte e 1 eliminazioni
  1. 2 1
      src/web.js

+ 2 - 1
src/web.js

@@ -147,7 +147,8 @@ function init() {
         if (port !== -1) {
         if (port !== -1) {
             logger.info('#####################predictorState:');
             logger.info('#####################predictorState:');
             var config = getRustConfig()
             var config = getRustConfig()
-            var com = `curl -X GET -H "auth: 4L" -H "token: r7T$8gBV!f&L@E2+" "http://127.0.0.1:${port}/predictor_state"`;
+
+            var com = `curl -X GET -H 'auth: 4L' -H 'token: r7T$8gBV!f&L@E2+' "http://127.0.0.1:${port}/predictor_state"`;
             logger.info('#####################com:', com);
             logger.info('#####################com:', com);
             execSync(com, (error, stdout, stderr) => {
             execSync(com, (error, stdout, stderr) => {
                 if (error) {
                 if (error) {