code style

This commit is contained in:
hongqiaowei
2021-05-14 16:25:35 +08:00
parent 6f62a6919e
commit 94dcfd0fe5
2 changed files with 11 additions and 11 deletions

View File

@@ -71,7 +71,7 @@ public class PreprocessFilter extends FizzWebFilter {
@Override
public Mono<Void> doFilter(ServerWebExchange exchange, WebFilterChain chain) {
Map<String, FilterResult> fc = new HashMap<>(); fc.put(WebUtils.PREV_FILTER_RESULT, succFr);
Map<String, FilterResult> fc = new HashMap<>(); fc.put(WebUtils.PREV_FILTER_RESULT, succFr);
Map<String, String> appendHdrs = new HashMap<>(8);
Map<String, Object> eas = exchange.getAttributes(); eas.put(WebUtils.FILTER_CONTEXT, fc);
eas.put(WebUtils.APPEND_HEADERS, appendHdrs);

View File

@@ -41,25 +41,25 @@ public class App {
static final int SECRETKEY = 3;
}
public int isDeleted = 0; // tb_app_auth.is_deleted
public int isDeleted = 0; // tb_app_auth.is_deleted
public int id; // tb_app_auth.id
public int id; // tb_app_auth.id
public String app; // tb_app_auth.app
public String app; // tb_app_auth.app
public String name; // tb_app_auth.app_name
public String name; // tb_app_auth.app_name
public boolean useAuth = false; // 0:false, 1:true
public boolean useAuth = false; // 0:false, 1:true
public int authType;
public int authType;
public String secretkey;
public String secretkey;
public boolean useWhiteList = false;
public boolean useWhiteList = false;
public String config;
public String config;
public Map<String, String[]> ips = new HashMap<>(8);
public Map<String, String[]> ips = new HashMap<>(8);
public void setUseAuth(int i) {
if (i == AUTH_TYPE.SIGN || i == AUTH_TYPE.SECRETKEY || i == AUTH_TYPE.CUSTOM) {