Browse Source

收方单附件预览改为下载

laiguoran 3 years ago
parent
commit
1756c81a42
1 changed files with 3 additions and 2 deletions
  1. 3 2
      app/service/stage_shoufang_att.js

+ 3 - 2
app/service/stage_shoufang_att.js

@@ -97,8 +97,9 @@ module.exports = app => {
             const sqlParam = [this.tableName, sfid];
             const result = await this.db.query(sql, sqlParam);
             for (const att of result) {
-                if (!ctx.helper.canPreview(att.fileext)) att.filepath = `/wap/shoufang/download/file/${att.id}`;
-                else att.filepath = att.filepath.replace(/^app|\/app/, '');
+                // if (!ctx.helper.canPreview(att.fileext)) att.filepath = `/wap/shoufang/download/file/${att.id}`;
+                // else att.filepath = att.filepath.replace(/^app|\/app/, '');
+                att.filepath = `/wap/shoufang/download/file/${att.id}`;
             }
             return result;
         }