Browse Source

log

pull/16/head
박재우 10 months ago
parent
commit
4d2cd49705
  1. 14
      pav-server/src/main/java/com/palnet/biz/api/main/dash/service/MainDashService.java

14
pav-server/src/main/java/com/palnet/biz/api/main/dash/service/MainDashService.java

@ -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<>();

Loading…
Cancel
Save