|
@@ -74,6 +74,12 @@ public class TrialSystemDockingServiceImpl extends BaseServiceImpl<TrialSystemDo
|
|
|
if(bladeFile!=null){
|
|
|
tsd.setFileUrlOss(bladeFile.getLink());
|
|
|
tsd.setIsUpdateOss(1);
|
|
|
+ try {
|
|
|
+ FileUtils.removeFile(localFilePath);
|
|
|
+ } catch (Exception e) {
|
|
|
+ System.err.println("删除本地文件失败: " + localFilePath + ", 错误: " + e.getMessage());
|
|
|
+ }
|
|
|
+
|
|
|
}else {
|
|
|
tsd.setIsUpdateOss(0);
|
|
|
}
|
|
@@ -113,6 +119,11 @@ public class TrialSystemDockingServiceImpl extends BaseServiceImpl<TrialSystemDo
|
|
|
if(bladeFile!=null){
|
|
|
trialSystemDocking.setFileUrlOss(bladeFile.getLink());
|
|
|
trialSystemDocking.setIsUpdateOss(1);
|
|
|
+ try {
|
|
|
+ FileUtils.removeFile(localFilePath);
|
|
|
+ } catch (Exception e) {
|
|
|
+ System.err.println("删除本地文件失败: " + localFilePath + ", 错误: " + e.getMessage());
|
|
|
+ }
|
|
|
}else {
|
|
|
trialSystemDocking.setIsUpdateOss(3);
|
|
|
}
|