@xuda.io/drive_module 1.1.815 → 1.1.817
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +5 -3
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -1582,8 +1582,9 @@ exports.upload_drive_file = async function (req, job_id, headers, file_obj) {
|
|
|
1582
1582
|
app_id,
|
|
1583
1583
|
uid,
|
|
1584
1584
|
drive_type,
|
|
1585
|
-
file_name: originalname,
|
|
1586
|
-
file_path: doc.file_path,
|
|
1585
|
+
// file_name: originalname,
|
|
1586
|
+
// file_path: doc.file_path,
|
|
1587
|
+
file_path: path.join(doc.file_path, originalname),
|
|
1587
1588
|
};
|
|
1588
1589
|
const check_existing_file_ret = await module.exports.check_drive_file(
|
|
1589
1590
|
check_req
|
|
@@ -1597,7 +1598,8 @@ exports.upload_drive_file = async function (req, job_id, headers, file_obj) {
|
|
|
1597
1598
|
|
|
1598
1599
|
let tmp_originalname = originalname + ` (${i})`;
|
|
1599
1600
|
|
|
1600
|
-
check_req.file_name = tmp_originalname;
|
|
1601
|
+
// check_req.file_name = tmp_originalname;
|
|
1602
|
+
check_req.file_path = path.join(doc.file_path, tmp_originalname);
|
|
1601
1603
|
|
|
1602
1604
|
const re_check_res = await module.exports.check_drive_file(check_req);
|
|
1603
1605
|
if (re_check_res.code < 0) {
|