MaiXinRong 3 vuotta sitten
vanhempi
commit
0a6202977c
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  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);