|
@@ -241,10 +241,12 @@ class UtilService extends CrudService {
|
|
|
* @param {*} fn 文件名,默认为 "导出结果"
|
|
|
*/
|
|
|
async toZip(fileList, fn = '导出结果') {
|
|
|
+ console.log('in function:toZip');
|
|
|
if (!_.isArray(fileList)) {
|
|
|
throw new BusinessError(ErrorCode.DATA_INVALID, '需要压缩的文件数据格式错误');
|
|
|
}
|
|
|
fn = `${fn}.zip`;
|
|
|
+ console.log(`after rename=>${fn}`);
|
|
|
// zip文件夹创建
|
|
|
const { app } = this;
|
|
|
const rootPath = `${app.config.cdn.repos_root_path}`;
|