ruifeng_liu 3 years ago
parent
commit
a432fab472
1 changed files with 1 additions and 0 deletions
  1. 1 0
      app/service/patent/patentwarning.js

+ 1 - 0
app/service/patent/patentwarning.js

@@ -105,6 +105,7 @@ class PatentwarningService extends CrudService {
       // 检查上传全路径是否存在,不存在就创建文件夹
       await this.checkPathAndCreate(path);
       // 另存文件
+      console.log(`${path}${newFileName}`);
       await fs.writeFileSync(`${path}${newFileName}`, buffer);
       // 替换为files开头
       let dataPath = path.replace(this.import_root_path, '/files');