|  | @@ -93,6 +93,10 @@ module.exports = app => {
 | 
	
		
			
				|  |  |                  // 每次开一个新的archiver
 | 
	
		
			
				|  |  |                  const ziparchiver = archiver('zip');
 | 
	
		
			
				|  |  |                  const outputPath = fs.createWriteStream(path.resolve(this.app.baseDir, zipPath));
 | 
	
		
			
				|  |  | +                outputPath.on('error', err => {
 | 
	
		
			
				|  |  | +                    reject(err);
 | 
	
		
			
				|  |  | +                });
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  |                  ziparchiver.pipe(outputPath);
 | 
	
		
			
				|  |  |                  files.forEach(item => {
 | 
	
		
			
				|  |  |                      ziparchiver.file(path.resolve(this.app.baseDir, 'app', item.filepath), { name: item.file_name });
 |