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

+ 2 - 1
pbl.js

@@ -217,6 +217,7 @@ router.route("/getFileOpen").all(async (req, res, next) => {
         p.unshift(_mysqlLabor[0], _mysqlLabor[1], "getFileOpen");
         mysql.usselect(p, async function (ret) {
             let data = ret[0];
+            let user = ret[1];
             // const array = data.map(item => item.documentid);
             const array = data.map(item => item.documentid);
             try {
@@ -234,7 +235,7 @@ router.route("/getFileOpen").all(async (req, res, next) => {
                     return { ...item, ...correspondingDoc };
                 });
 
-                res.status(200).json({ result: mergedData });
+                res.status(200).json({ result: mergedData, user: user });
             } catch (error) {
                 res.status(500).json({ error: error instanceof Error ? error.message : "An error occurred" });
             }