|
@@ -1,6 +1,7 @@
|
|
|
package com.fdkankan.scene.service.impl;
|
|
|
|
|
|
import cn.hutool.core.collection.CollUtil;
|
|
|
+import cn.hutool.core.thread.ThreadUtil;
|
|
|
import cn.hutool.core.util.StrUtil;
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
|
import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper;
|
|
@@ -150,8 +151,11 @@ public class SceneUploadServiceImpl extends ServiceImpl<ISceneUploadMapper, Scen
|
|
|
throw new BusinessException(ErrorCode.FAILURE_CODE_7013);
|
|
|
}
|
|
|
urlList.add(realFileName);
|
|
|
-
|
|
|
- FileUtils.delFile(newFile.getPath());
|
|
|
+ try{
|
|
|
+ FileUtils.delFile(newFile.getPath());
|
|
|
+ }catch (Exception e){
|
|
|
+ log.error("delete tempFile error ,===="+newFile.getAbsoluteFile());
|
|
|
+ }
|
|
|
//添加记录
|
|
|
this.saveData(num,ossPath,bizType,userId);
|
|
|
}
|