Skip to content

Commit

Permalink
[Bug]: 申请单附件类型字段上传文件生成的key路径值异常 #6610
Browse files Browse the repository at this point in the history
  • Loading branch information
sunhaolin committed Apr 19, 2024
1 parent 78af2d9 commit df2e554
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions services/service-files/main/default/manager/file.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/*
* @Author: [email protected]
* @Date: 2022-06-09 09:36:43
* @LastEditors: liaodaxue
* @LastEditTime: 2023-06-16 15:56:45
* @LastEditors: 孙浩林 [email protected]
* @LastEditTime: 2024-04-19 14:47:44
* @Description: 文件类,处理文件保存
*/
'use strict';
Expand Down Expand Up @@ -148,8 +148,8 @@ class File {
const absolutePath = path.resolve(pathname);
// 如果文件夹不存在,则创建文件夹
mkdirp.sync(absolutePath);

return customPathPrefix + '/' + fsCollectionName + '-' + _id + '-' + final_filename;
const fullpath = path.join(customPathPrefix, fsCollectionName + '-' + _id + '-' + final_filename)
return fullpath;
}
else {
return fsCollectionName + '/' + fsCollectionName + '-' + _id + '-' + final_filename;
Expand Down

0 comments on commit df2e554

Please sign in to comment.