|
@@ -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');
|