| | |
| | | // registration.excludePathPatterns("/api/common/**");
|
| | |
|
| | | //
|
| | | // InterceptorRegistration registration = registry.addInterceptor(new DappInterceptor());
|
| | | // registration.addPathPatterns("/dapp/**");
|
| | | // registration.excludePathPatterns("/dapp/common/**");
|
| | | InterceptorRegistration registration = registry.addInterceptor(new DappInterceptor());
|
| | | registration.addPathPatterns("/dapi/**");
|
| | | registration.excludePathPatterns("/dapi/common/**");
|
| | | }
|
| | |
|
| | | /**
|
| | |
| | | |
| | | @Override |
| | | public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) throws Exception { |
| | | String headAddress = request.getHeader("address"); |
| | | String headAddress = request.getHeader("token"); |
| | | log.info("进入拦截:{}", headAddress); |
| | | if (StrUtil.isBlank(headAddress)) { |
| | | responseUnAuth(response); |
| | |
| | | @CrossOrigin("*") |
| | | @RestController |
| | | @Api(value = "dapp接口", tags = "dapp接口") |
| | | @RequestMapping(value = "/dapp/member") |
| | | @RequestMapping(value = "/dapi/member") |
| | | public class ApiDappMemberController { |
| | | |
| | | private final DappWalletService dappWalletService; |