Quellcode durchsuchen

合同支付,附件数据问题

MaiXinRong vor 2 Wochen
Ursprung
Commit
7a1019e143
1 geänderte Dateien mit 2 neuen und 1 gelöschten Zeilen
  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']]
             });
             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;
         }