소스 검색

合同支付,附件数据问题

MaiXinRong 2 주 전
부모
커밋
7a1019e143
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      app/service/pay_att.js

+ 2 - 1
app/service/pay_att.js

@@ -27,7 +27,8 @@ module.exports = app => {
                 orders: [['id', 'desc']]
                 orders: [['id', 'desc']]
             });
             });
             for (const f of files) {
             for (const f of files) {
-                delete f.filepath;
+                f.filepath = this.ctx.app.config.fujianOssPath + f.filepath;
+                if (this.ctx.helper.canPreview(f.fileext)) f.viewpath = f.filepath;
             }
             }
             return files;
             return files;
         }
         }