Commit 82c312a9 authored by suntao's avatar suntao

登陆 与 role加载 顺序调整

parent 3c3cf75c
...@@ -37,7 +37,7 @@ public class ChannelConfController { ...@@ -37,7 +37,7 @@ public class ChannelConfController {
*/ */
@ChannelIdInit @ChannelIdInit
@PostMapping("/info") @PostMapping("/info")
public Result channelInfo(@RequestParam(name = "channelId", required = false) Long channelId, Integer pageNumber, Integer pageSize) { public Result channelInfo(Long channelId, Integer pageNumber, Integer pageSize) {
return Result.buildSuccess(channelConfService.getChannelInfo(pageNumber, pageSize, channelId)); return Result.buildSuccess(channelConfService.getChannelInfo(pageNumber, pageSize, channelId));
} }
......
...@@ -37,6 +37,6 @@ public @interface EnableSecurity { ...@@ -37,6 +37,6 @@ public @interface EnableSecurity {
* *
* @return * @return
*/ */
int order() default Ordered.LOWEST_PRECEDENCE; int order() default Ordered.HIGHEST_PRECEDENCE;
} }
...@@ -34,13 +34,13 @@ import java.lang.reflect.Method; ...@@ -34,13 +34,13 @@ import java.lang.reflect.Method;
@Slf4j @Slf4j
@Component @Component
@Aspect @Aspect
@Order(Ordered.HIGHEST_PRECEDENCE) @Order(1)
public class RoleLoadAspect { public class RoleLoadAspect {
@Autowired @Autowired
private UserSessionService userSessionService; private UserSessionService userSessionService;
@Pointcut("execution(* cn.quantgroup.cashloanflowboss.api.channel.controller.*.*(..))") @Pointcut("execution(* cn.quantgroup.cashloanflowboss.api.*.controller.*.*(..))")
private void channelRoleInit() {} private void channelRoleInit() {}
@Around(value = "channelRoleInit()") @Around(value = "channelRoleInit()")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment