|
@@ -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;
|
|
|
}
|