浏览代码

基础接口搭建完毕,上服务器测试

skyfffire 3 年之前
父节点
当前提交
336989a323
共有 2 个文件被更改,包括 10 次插入3 次删除
  1. 6 0
      scripts/interface/swapPath.ts
  2. 4 3
      scripts/path/level2Generate.ts

+ 6 - 0
scripts/interface/swapPath.ts

@@ -19,4 +19,10 @@ export default class SwapPath {
     })
     return rst.data
   }
+
+  static async findAll() {
+    let url = '/swappath/findAll'
+    const rst = await http.post(url)
+    return rst.data
+  }
 }

+ 4 - 3
scripts/path/level2Generate.ts

@@ -71,9 +71,10 @@ class Level2Generate {
         const topLpPullRst = await history.findByBlock('topLp')
         if (!topLpPullRst.state) continue
         const topLpList = topLpPullRst.data
-        const normalLpPullRst = await history.findByBlock('normalLp')
-        if (!normalLpPullRst.state) continue
-        const normalLpList = normalLpPullRst.data
+        // const normalLpPullRst = await history.findByBlock('normalLp')
+        // if (!normalLpPullRst.state) continue
+        // const normalLpList = normalLpPullRst.data
+        const normalLpList: any = []
 
         const allTypeLpList: any = topLpList.concat(normalLpList)