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, '未找到指定文件');