瀏覽代碼

新增。rust仓位检查接口

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

+ 1 - 1
src/web.js

@@ -124,10 +124,10 @@ function init() {
     })
     //启动-仓位检查
     app.get('/searchPositions', (req, res) =>{
-        res.send({'code': 200, 'data': true, "message": "SUCCESS"});
         const param = req.body;
         logger.info('--searchPositions:'+param);
         robot.searchPositions(param)
+        res.send({'code': 200, 'data': true, "message": "SUCCESS"});
     })
     // 使服务器监听特定端口
     app.listen(port, () => {