lrf402788946 4 years ago
parent
commit
40f135f433
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/service/dock/patent.js

+ 1 - 1
app/service/dock/patent.js

@@ -14,7 +14,6 @@ class PatentService extends CrudService {
   constructor(ctx) {
     super(ctx, 'patent');
     this.model = this.ctx.model.Patent;
-
     this.root_path = _.get(this.ctx.app.config.export, 'root_path');
     this.file_type = '';
     if (!fs.existsSync(`${this.root_path}${this.file_type}`)) {
@@ -28,6 +27,7 @@ class PatentService extends CrudService {
 
   async toImport({ uri, origin }) {
     assert(uri, '未获取到文件地址');
+    console.log(`${this.domain}${uri}`);
     const file = await this.ctx.curl(`${this.domain}${uri}`);
     if (!(file && file.data)) {
       throw new BusinessError(ErrorCode.DATA_NOT_EXIST, '未找到指定文件');