|
|
|
@ -135,7 +135,7 @@ public class MainDashService {
|
|
|
|
|
return resultList; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public List<MainDashFlightListModel> mainDashDronFlightList(String serviceType){ |
|
|
|
|
public List<MainDashFlightListModel> mainDashDronFlightList(String serviceType) throws Exception{ |
|
|
|
|
|
|
|
|
|
String cptAuth = token.getCptAuthCodeByToken(); |
|
|
|
|
|
|
|
|
@ -149,19 +149,25 @@ public class MainDashService {
|
|
|
|
|
|
|
|
|
|
}else { |
|
|
|
|
|
|
|
|
|
throw new CustomException(ErrorCode.DATA_NO, "cptAuth가 부여되지 않은 계정입니다"); |
|
|
|
|
log.error("cptAuth가 부여되지 않은 계정입니다"); |
|
|
|
|
throw new Exception(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
return resultList; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public Map<String, String> mainDashDronFlightStcs(){ |
|
|
|
|
public Map<String, String> mainDashDronFlightStcs() throws Exception{ |
|
|
|
|
|
|
|
|
|
String cptAuth = token.getCptAuthCodeByToken(); |
|
|
|
|
|
|
|
|
|
cptAuth = "KAC"; // 임시 테스트용으로 KAC 권한 부여
|
|
|
|
|
|
|
|
|
|
if(cptAuth == null) throw new CustomException(ErrorCode.DATA_NO, "cptAuth가 부여되지 않은 계정입니다"); |
|
|
|
|
if(cptAuth == null) { |
|
|
|
|
|
|
|
|
|
log.error("cptAuth가 부여되지 않은 계정입니다"); |
|
|
|
|
throw new Exception(); |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
Map<String, String> resultList = new HashMap<>(); |
|
|
|
|
|
|
|
|
|