|
@@ -373,13 +373,6 @@ module.exports = app => {
|
|
const uuid = ctx.params.uuid;
|
|
const uuid = ctx.params.uuid;
|
|
const rptName = ctx.params.rptName;
|
|
const rptName = ctx.params.rptName;
|
|
const suffix = '.' + ctx.params.suffix;
|
|
const suffix = '.' + ctx.params.suffix;
|
|
- function getUuidFile(filestream) {
|
|
|
|
- return new Promise(function(resolve, reject) {
|
|
|
|
- filestream.on('data', function(chunk) {
|
|
|
|
- resolve(chunk);
|
|
|
|
- });
|
|
|
|
- });
|
|
|
|
- }
|
|
|
|
try {
|
|
try {
|
|
const rptNameURI = encodeURI(rptName);
|
|
const rptNameURI = encodeURI(rptName);
|
|
const filePath = this.app.baseDir + '/app/public/download/';
|
|
const filePath = this.app.baseDir + '/app/public/download/';
|