MaiXinRong 3 年 前
コミット
0a6202977c
1 ファイル変更1 行追加1 行削除
  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);