lrf402788946 4 years ago
parent
commit
ec69356b90
2 changed files with 1 additions and 3 deletions
  1. 1 1
      app/model/patent.js
  2. 0 2
      app/service/dock/patent.js

+ 1 - 1
app/model/patent.js

@@ -16,7 +16,7 @@ const PatentSchema = {
   agent_personal: { type: String, required: false, maxLength: 500 }, // 代理人
   agent: { type: String, required: false, maxLength: 500 }, // 代理机构
   abstract: { type: String, required: false, maxLength: 1000 }, // 摘要
-  img_url: { type: String, required: false, maxLength: 500 }, // 图片
+  img_url: { type: String, required: false }, // 图片
   origin: { type: String, maxLength: 200 }, // 数据来源(手写的)
 };
 

+ 0 - 2
app/service/dock/patent.js

@@ -27,8 +27,6 @@ class PatentService extends CrudService {
   }
 
   async toImport({ uri, origin }) {
-    console.log('in function:');
-    console.log(`${this.domain}${uri}`);
     assert(uri, '未获取到文件地址');
     const file = await this.ctx.curl(`${this.domain}${uri}`);
     if (!(file && file.data)) {