lrf402788946 4 lat temu
rodzic
commit
2106482908
1 zmienionych plików z 2 dodań i 0 usunięć
  1. 2 0
      app/service/util.js

+ 2 - 0
app/service/util.js

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