헤더영역 후불제 오류 추가 수정 - 비로그인시 오류 발생하여 수정 처리
- 비로그인시 오류 발생하여 수정 처리
@cb5b5ece1b25ab32a646e67eaebad446a59fab78
--- src/main/java/itn/web/MainController.java
+++ src/main/java/itn/web/MainController.java
... | ... | @@ -1169,22 +1169,26 @@ |
| 1169 | 1169 |
|
| 1170 | 1170 |
model.addAttribute("myBankList", myBankList);
|
| 1171 | 1171 |
|
| 1172 |
- String auth = loginVO.getAuthority(); |
|
| 1173 | 1172 |
String prePaymentYn = ""; |
| 1174 |
- |
|
| 1175 |
- //사용자 권한인 경우만 실행 |
|
| 1176 |
- if(!auth.equals("ROLE_ADMIN")) {
|
|
| 1173 |
+ if(loginVO != null) {
|
|
| 1177 | 1174 |
|
| 1178 |
- //후불회원 여부 조회 |
|
| 1179 |
- UserManageVO userManageVO = new UserManageVO(); |
|
| 1175 |
+ String auth = loginVO.getAuthority(); |
|
| 1180 | 1176 |
|
| 1181 |
- if(!userId.equals("")) {
|
|
| 1182 |
- userManageVO.setMberId(userId); |
|
| 1183 |
- userManageVO = userManageService.selectAdminSmsNoticeYn(userManageVO); |
|
| 1184 |
- } |
|
| 1185 |
- |
|
| 1186 |
- if(userManageVO.getPrePaymentYn() != null) {
|
|
| 1187 |
- prePaymentYn = userManageVO.getPrePaymentYn(); |
|
| 1177 |
+ //사용자 권한인 경우만 실행 |
|
| 1178 |
+ if(!auth.equals("ROLE_ADMIN")) {
|
|
| 1179 |
+ |
|
| 1180 |
+ //후불회원 여부 조회 |
|
| 1181 |
+ UserManageVO userManageVO = new UserManageVO(); |
|
| 1182 |
+ |
|
| 1183 |
+ if(!userId.equals("")) {
|
|
| 1184 |
+ userManageVO.setMberId(userId); |
|
| 1185 |
+ userManageVO = userManageService.selectAdminSmsNoticeYn(userManageVO); |
|
| 1186 |
+ } |
|
| 1187 |
+ |
|
| 1188 |
+ if(userManageVO.getPrePaymentYn() != null) {
|
|
| 1189 |
+ prePaymentYn = userManageVO.getPrePaymentYn(); |
|
| 1190 |
+ } |
|
| 1191 |
+ |
|
| 1188 | 1192 |
} |
| 1189 | 1193 |
|
| 1190 | 1194 |
} |
Add a comment
Delete comment
Once you delete this comment, you won't be able to recover it. Are you sure you want to delete this comment?