Skip to content

Commit

Permalink
test: k3s deploy action
Browse files Browse the repository at this point in the history
  • Loading branch information
raymondanythings committed Aug 27, 2024
1 parent a257c39 commit c66f76a
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ public boolean supportsParameter(MethodParameter parameter) {
public Long resolveArgument(MethodParameter parameter, ModelAndViewContainer mavContainer, NativeWebRequest webRequest, WebDataBinderFactory binderFactory) throws Exception {
try {
var securityContext = SecurityContextHolder.getContext();
log.info("?");
var memberId = Optional.ofNullable(securityContext).map(it -> it.getAuthentication().getName()).orElseThrow(() -> new BaseCustomException(UNAUTHORIZED_USER));
return Long.parseLong(memberId);
} catch (Exception e) {
Expand Down

0 comments on commit c66f76a

Please sign in to comment.