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);
       await this.checkPathAndCreate(path);
       // 另存文件
       // 另存文件
+      console.log(`${path}${newFileName}`);
       await fs.writeFileSync(`${path}${newFileName}`, buffer);
       await fs.writeFileSync(`${path}${newFileName}`, buffer);
       // 替换为files开头
       // 替换为files开头
       let dataPath = path.replace(this.import_root_path, '/files');
       let dataPath = path.replace(this.import_root_path, '/files');