ruifeng_liu 3 년 전
부모
커밋
a432fab472
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  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');