|
@@ -244,11 +244,10 @@ router.route("/getFileD").all(async (req, res, next) => {
|
|
|
router.route("/getFileArray").all(async (req, res, next) => {
|
|
|
//mode的处理
|
|
|
if (req.body[0]) {
|
|
|
- let data = decodeURIComponent(req.body[0].array).split(",");
|
|
|
// const array = data.map(item => item.documentid);
|
|
|
- const array = data;
|
|
|
try {
|
|
|
- const response = await client.documents.list({ ids: array });
|
|
|
+ let data = decodeURIComponent(req.body[0].array).split(",");
|
|
|
+ const response = await client.documents.list({ ids: data });
|
|
|
|
|
|
res.status(200).json({ result: response.results });
|
|
|
} catch (error) {
|