ソースを参照

fix: 修复变更附件上传的bug

lanjianrong 4 年 前
コミット
850a5855af
1 ファイル変更1 行追加1 行削除
  1. 1 1
      app/controller/change_controller.js

+ 1 - 1
app/controller/change_controller.js

@@ -639,7 +639,7 @@ module.exports = app => {
                     const fileInfo = path.parse(stream.filename);
                     const create_time = Date.parse(new Date()) / 1000;
                     const filepath = `app/public/upload/change/fujian_${create_time + index.toString() + fileInfo.ext}`;
-                    await ctx.helper.saveStreamFile(stream, path.resolve(this.app.baseDir, 'app', filepath));
+                    await ctx.helper.saveStreamFile(stream, path.resolve(this.app.baseDir, filepath));
                     await sendToWormhole(stream);
                     // 保存数据到att表
                     const fileData = {