Browse Source

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

hl 5 months ago
parent
commit
04e8618576
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/web.js

+ 2 - 1
src/web.js

@@ -147,7 +147,8 @@ function init() {
         if (port !== -1) {
             logger.info('#####################predictorState:');
             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);
             execSync(com, (error, stdout, stderr) => {
                 if (error) {