Browse Source

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

hl 2 tuần trước cách đây
mục cha
commit
9b42c30a51
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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}`)