Commit 7ac79019 authored by yanzg's avatar yanzg

参数处理

parent 070b88f0
......@@ -313,11 +313,13 @@ public class YzgFileServiceImpl implements YzgFileService {
// 循环转换所有文件
for (YzgFileVideoImageItemReqVo item : req.getList()) {
String to = fileConfig.getServerFullPath(item.getTo());
File file = new File(to);
String ext = file.getAbsolutePath().substring(file.getAbsolutePath().lastIndexOf("."));
// 先压缩到临时文件
String toFileTemp = to + StringHelper.getNewID() + ".tmp";
String toFileTemp = to + StringHelper.getNewID() + ".tmp" + ext;
// 将临时文件改成具体的文件
File fileTemp = new File(toFileTemp);
File file = new File(to);
try {
if (fileTemp.exists()) {
fileTemp.delete();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment