@xuda.io/drive_module 1.1.642 → 1.1.644
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 +6 -2
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -627,13 +627,17 @@ exports.update_drive_file = async function (req, job_id, headers, file_obj) {
|
|
|
627
627
|
app_id,
|
|
628
628
|
uid,
|
|
629
629
|
drive_type,
|
|
630
|
-
file_name
|
|
631
|
-
file_path
|
|
630
|
+
file_name,
|
|
631
|
+
file_path,
|
|
632
632
|
};
|
|
633
633
|
const check_existing_file_ret = await module.exports.check_drive_file(
|
|
634
634
|
check_req
|
|
635
635
|
);
|
|
636
636
|
|
|
637
|
+
if (check_existing_file_ret.code > -1) {
|
|
638
|
+
return { code: -5, data: "file not exit" };
|
|
639
|
+
}
|
|
640
|
+
|
|
637
641
|
var target_file = path.join(file_path, file_name);
|
|
638
642
|
const master_id = await _common.get_project_app_id(app_id, true);
|
|
639
643
|
const tempPath = file_obj.path;
|