update 新增算法sha3x xtm币种,后台管理系统优化钱包出入账信息
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
package com.m2pool.common.security.config;
|
||||
|
||||
import com.m2pool.common.security.interceptor.CoinInterceptor;
|
||||
import com.m2pool.common.security.interceptor.HeaderInterceptor;
|
||||
import com.m2pool.common.security.interceptor.OpenApiHeaderInterceptor;
|
||||
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
|
||||
@@ -25,7 +26,6 @@ public class WebMvcConfig implements WebMvcConfigurer {
|
||||
"/miner/hashrate_real","/miner/hashrate_history","/miner/hashrate_last24h",
|
||||
"/pool/hashrate","/pool/hashrate_history","/pool/miners_list","/pool/watch","/oapi/**"};
|
||||
|
||||
|
||||
@Override
|
||||
public void addInterceptors(InterceptorRegistry registry) {
|
||||
registry.addInterceptor(getHeaderInterceptor())
|
||||
@@ -34,9 +34,14 @@ public class WebMvcConfig implements WebMvcConfigurer {
|
||||
.order(-10);
|
||||
|
||||
registry.addInterceptor(getOpenApiHeaderInterceptor())
|
||||
.addPathPatterns(matchUrls).
|
||||
excludePathPatterns("/auth/**,/system/**,/pool/**")
|
||||
.addPathPatterns(matchUrls)
|
||||
.excludePathPatterns("/auth/**,/system/**,/pool/**")
|
||||
.order(-15);
|
||||
|
||||
//registry.addInterceptor(getCoinInterceptor())
|
||||
// .addPathPatterns("/**")
|
||||
// .order(-20);
|
||||
|
||||
}
|
||||
/**
|
||||
* 自定义请求头拦截器
|
||||
@@ -45,4 +50,5 @@ public class WebMvcConfig implements WebMvcConfigurer {
|
||||
|
||||
public OpenApiHeaderInterceptor getOpenApiHeaderInterceptor(){return new OpenApiHeaderInterceptor();}
|
||||
|
||||
public CoinInterceptor getCoinInterceptor(){return new CoinInterceptor();}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user