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);