Sfoglia il codice sorgente

合同支付,附件数据问题

MaiXinRong 5 mesi fa
parent
commit
7a1019e143
1 ha cambiato i file con 2 aggiunte e 1 eliminazioni
  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;
         }
         }