lrf402788946 %!s(int64=4) %!d(string=hai) anos
pai
achega
41783b4958
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  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, '未找到指定文件');