lrf402788946 4 năm trước cách đây
mục cha
commit
41783b4958
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  1. 2 1
      app/service/dock/patent.js

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

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