lrf402788946 4 年之前
父節點
當前提交
41783b4958
共有 1 個文件被更改,包括 2 次插入1 次删除
  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, '未找到指定文件');