|
@@ -27,11 +27,14 @@ class PatentwarningService extends CrudService {
|
|
|
const arr = fileFullName.split('.');
|
|
|
const ext = _.last(arr);
|
|
|
const fileName = _.head(arr);
|
|
|
- const uncompressFilePath = `${this.import_root_path}${sep}temp`;
|
|
|
+ const uncompressFilePath = `${this.import_root_path}${sep}`;
|
|
|
if (ext !== 'zip') {
|
|
|
throw new BusinessError(ErrorCode.FILE_FAULT, '只接收压缩格式为zip的压缩包');
|
|
|
}
|
|
|
// 解压
|
|
|
+ console.log('解压:');
|
|
|
+ console.log(uri);
|
|
|
+ console.log(uncompressFilePath);
|
|
|
await compressing.zip.uncompress(uri, `${uncompressFilePath}`);
|
|
|
// 找到
|
|
|
console.log(uncompressFilePath, fileName);
|