瀏覽代碼

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

hl 2 周之前
父節點
當前提交
9b42c30a51
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/web.js

+ 1 - 1
src/web.js

@@ -154,7 +154,7 @@ function init() {
         http.request_get(`${accUrl}/predictor_state`, {...config.headers})
             .then((data) => {
                 logger.info(`#####################返回数据:`,data)
-                res.send({'code': 200, 'data': JSON.stringify(data), "message": "SUCCESS"});
+                res.send({'code': 200, 'data': data, "message": "SUCCESS"});
             }).catch((error) => {
             // 处理可能发生的错误
             logger.info(`#####################汇报:获取状态请求失败: ${error.message}`)