|
@@ -99,14 +99,14 @@ public class UploadWorkeCertificateServiceImpl implements UploadWorkeCertificate
|
|
|
// 生成图片 System.getProperty("java.io.tmpdir")
|
|
|
if (StringUtils.isNotEmpty(item.getFileUrl()) && (StringUtils.isEmpty(item.getOutFileUrl()))){
|
|
|
fileo = publicService.path(item.getFileUrl());
|
|
|
- File nFile = new File(fileo);
|
|
|
+ File nFile = publicService.createf(fileo);
|
|
|
// 下载文件生成新文件 fid1
|
|
|
baseService.saveToFile(ossUtil.getUrlWw(item.getFileUrl()),nFile);
|
|
|
|
|
|
}
|
|
|
if (StringUtils.isNotEmpty(item.getFileUrl2()) && (StringUtils.isEmpty(item.getOutFileUrl2()))){
|
|
|
filet = publicService.path(item.getFileUrl2());
|
|
|
- File nFile = new File(filet);
|
|
|
+ File nFile = publicService.createf(filet);
|
|
|
// 下载文件生成新文件 fid2
|
|
|
baseService.saveToFile(ossUtil.getUrlWw(item.getFileUrl2()),nFile);
|
|
|
}
|