lsc 4 天之前
父节点
当前提交
5f27841432
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      pbl.js

+ 2 - 0
pbl.js

@@ -247,6 +247,7 @@ router.route("/getFileArray").all(async (req, res, next) => {
         // const array = data.map(item => item.documentid);
         try {
             let data = decodeURIComponent(req.body[0].array).split(",");
+            
             const response = await client.documents.list({ ids: data });
 
             res.status(200).json({ result: response.results });
@@ -957,6 +958,7 @@ router.route("/getGraphs2").all(async (req, res, next) => {
                 const response = await client.documents.listRelationships({
                     id: documentId,
                     includeVectors: false,
+                    offset: 0,
                     limit: 1000,  // 修正这里的参数
                 });
                 return response.results;