Преглед на файлове

合同支付,附件数据问题

MaiXinRong преди 5 месеца
родител
ревизия
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;
         }
         }