|
@@ -32,14 +32,9 @@ class PatentwarningService extends CrudService {
|
|
|
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);
|
|
|
const filePaths = await this.findFileNameLoop(uncompressFilePath, fileName);
|
|
|
- console.log(filePaths);
|
|
|
const xmlPath = filePaths.find(f => f.includes('.xml'));
|
|
|
const create_number = await this.dealXml(xmlPath);
|
|
|
if (!create_number) throw new BusinessError(ErrorCode.FILE_FAULT, '未找到申请号');
|