|
@@ -166,6 +166,7 @@ class PatentwarningService extends CrudService {
|
|
|
* @param {String} filePath xml的文件路径
|
|
|
*/
|
|
|
async dealXml(filePath) {
|
|
|
+ console.log(filePath);
|
|
|
const buffer = await fs.readFileSync(filePath);
|
|
|
let str = encoding.convert(buffer, 'UTF8', 'GBK');
|
|
|
if (!str) throw new BusinessError(ErrorCode.FILE_FAULT, '读取xml文件失败');
|