MaiXinRong 3 years ago
parent
commit
0a6202977c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/controller/stage_controller.js

+ 1 - 1
app/controller/stage_controller.js

@@ -1799,7 +1799,7 @@ module.exports = app => {
             const id = ctx.params.id;
             try {
                 if (!id) throw '数据错误';
-                const fileInfo = ctx.service.payAtt.getDataById(id);
+                const fileInfo = await ctx.service.payAtt.getDataById(id);
                 if (!fileInfo) throw '不存在该文件';
 
                 const fileName = path.join(this.app.baseDir, fileInfo.filepath);