|
@@ -1108,7 +1108,6 @@ module.exports = app => {
|
|
|
fileext: fileInfo.ext,
|
|
|
filesize: Array.isArray(parts.field.size) ? parts.field.size[index] : parts.field.size,
|
|
|
filepath,
|
|
|
- orginpath: ctx.app.config.fujianOssPath + filepath,
|
|
|
extra_upload,
|
|
|
};
|
|
|
const result = await ctx.service.changeAtt.save(parts.field, fileData, ctx.session.sessionUser.accountId);
|
|
@@ -1119,6 +1118,7 @@ module.exports = app => {
|
|
|
// fileData.filesize = await ctx.helper.bytesToSize(fileData.filesize);
|
|
|
fileData.uid = ctx.session.sessionUser.accountId;
|
|
|
fileData.id = result.insertId;
|
|
|
+ fileData.orginpath = ctx.app.config.fujianOssPath + filepath;
|
|
|
delete fileData.filepath;
|
|
|
files.push(fileData);
|
|
|
++index;
|