|
@@ -616,8 +616,6 @@ module.exports = app => {
|
|
|
const filepath = path.join('public/upload', this.ctx.tender.id.toString(), 'tc', 'fujian_' + create_time + fileInfo.ext);
|
|
|
await ctx.helper.saveStreamFile(stream, path.join(this.app.baseDir, 'app', filepath));
|
|
|
files.push({ filepath, name: stream.filename });
|
|
|
- // 将上传的文件流消费掉,防止浏览器卡死
|
|
|
- stream && (await sendToWormhole(stream));
|
|
|
}
|
|
|
const upload_time = this.ctx.helper.dateTran(new Date());
|
|
|
const payload = files.map(file => {
|
|
@@ -631,6 +629,7 @@ module.exports = app => {
|
|
|
tid: ctx.tender.id,
|
|
|
user_id: ctx.session.sessionUser.accountId,
|
|
|
mid: ctx.material.id,
|
|
|
+ s_order: ctx.params.order,
|
|
|
upload_time,
|
|
|
filepath: file.filepath,
|
|
|
file_size: ctx.helper.bytesToSize(idx === 'isString' ? parts.field.size : parts.field.size[idx]),
|