소나큐브 버그 수정

main
이범준 7 months ago
parent fe80cf9a43
commit 4b0cee80b4

@ -86,7 +86,7 @@ public class AdminController extends ApplicationController {
case "smgReceive" : { case "smgReceive" : {
if(interfaceKey == null || interfaceKey.equals("")) { if(interfaceKey == null || interfaceKey.equals("")) {
new RuntimeException("인터페이스키 없음"); throw new RuntimeException("인터페이스키 없음");
} }
List<String> interfaceKeys = new ArrayList<String>(); List<String> interfaceKeys = new ArrayList<String>();

@ -187,7 +187,9 @@ public class CmmnUtil {
if(removeSelf) { if(removeSelf) {
if (file.listFiles().length==0) { if (file.listFiles().length==0) {
file.delete(); if(!file.delete()) {
throw new RuntimeException("파일 삭제 중 오류가 발생하였습니다.");
}
delCnt++; delCnt++;
} }
} }

@ -160,7 +160,9 @@ public class StngController extends ApplicationController {
String bgFullPath = bgPath + "/" + fileName; String bgFullPath = bgPath + "/" + fileName;
File newFile = new File(bgFullPath); File newFile = new File(bgFullPath);
if(newFile.exists()) { if(newFile.exists()) {
newFile.delete(); if(!newFile.delete()) {
throw new RuntimeException("배경 이미지 업로드 중 오류가 발생하였습니다.");
}
} }
backgroundFile.transferTo(newFile); backgroundFile.transferTo(newFile);

@ -531,7 +531,9 @@ public class CrdnServiceBean extends AbstractServiceBean implements CrdnService
zipFile.close(); zipFile.close();
for(File file : fileList) { for(File file : fileList) {
file.delete(); if(!file.delete()) {
throw new RuntimeException("[F]파일 삭제 중 오류가 발생하였습니다.");
}
} }
Crdn crdn = new Crdn(); Crdn crdn = new Crdn();

@ -182,7 +182,9 @@ public class Mngt03Controller extends ApplicationController {
File newFile = new File(newFileFullPath); File newFile = new File(newFileFullPath);
if(newFile.exists()) { if(newFile.exists()) {
newFile.delete(); if(!newFile.delete()) {
throw new RuntimeException("[F]배경 이미지 업로드 중 오류가 발생하였습니다.");
}
} }
mf.transferTo(newFile); mf.transferTo(newFile);

Loading…
Cancel
Save