|
@@ -35,6 +35,7 @@ class PatentwarningService extends CrudService {
|
|
await compressing.zip.uncompress(uri, `${uncompressFilePath}`);
|
|
await compressing.zip.uncompress(uri, `${uncompressFilePath}`);
|
|
// 找到
|
|
// 找到
|
|
const filePaths = await this.findFileNameLoop(uncompressFilePath, fileName);
|
|
const filePaths = await this.findFileNameLoop(uncompressFilePath, fileName);
|
|
|
|
+ console.log(filePaths);
|
|
const xmlPath = filePaths.find(f => f.includes('.xml'));
|
|
const xmlPath = filePaths.find(f => f.includes('.xml'));
|
|
const create_number = await this.dealXml(xmlPath);
|
|
const create_number = await this.dealXml(xmlPath);
|
|
if (!create_number) throw new BusinessError(ErrorCode.FILE_FAULT, '未找到申请号');
|
|
if (!create_number) throw new BusinessError(ErrorCode.FILE_FAULT, '未找到申请号');
|