update 优化注释格式,删除无用假注释
parent
ad80e575bd
commit
2eb9ec8526
|
|
@ -59,7 +59,6 @@ public class CaptchaController {
|
||||||
// 生成验证码
|
// 生成验证码
|
||||||
CaptchaType captchaType = captchaProperties.getType();
|
CaptchaType captchaType = captchaProperties.getType();
|
||||||
boolean isMath = CaptchaType.MATH == captchaType;
|
boolean isMath = CaptchaType.MATH == captchaType;
|
||||||
//如果是则拿取数字验证码位数,如果不是则拿取字符验证码长度
|
|
||||||
Integer length = isMath ? captchaProperties.getNumberLength() : captchaProperties.getCharLength();
|
Integer length = isMath ? captchaProperties.getNumberLength() : captchaProperties.getCharLength();
|
||||||
CodeGenerator codeGenerator = ReflectUtils.newInstance(captchaType.getClazz(), length);
|
CodeGenerator codeGenerator = ReflectUtils.newInstance(captchaType.getClazz(), length);
|
||||||
AbstractCaptcha captcha = SpringUtils.getBean(captchaProperties.getCategory().getClazz());
|
AbstractCaptcha captcha = SpringUtils.getBean(captchaProperties.getCategory().getClazz());
|
||||||
|
|
|
||||||
|
|
@ -29,40 +29,13 @@ import java.util.Set;
|
||||||
@NoArgsConstructor(access = AccessLevel.PRIVATE)
|
@NoArgsConstructor(access = AccessLevel.PRIVATE)
|
||||||
public class LoginHelper {
|
public class LoginHelper {
|
||||||
|
|
||||||
/**
|
|
||||||
* 用户信息
|
|
||||||
*/
|
|
||||||
public static final String LOGIN_USER_KEY = "loginUser";
|
public static final String LOGIN_USER_KEY = "loginUser";
|
||||||
|
|
||||||
/**
|
|
||||||
* 租户ID
|
|
||||||
*/
|
|
||||||
public static final String TENANT_KEY = "tenantId";
|
public static final String TENANT_KEY = "tenantId";
|
||||||
|
|
||||||
/**
|
|
||||||
* 用户ID
|
|
||||||
*/
|
|
||||||
public static final String USER_KEY = "userId";
|
public static final String USER_KEY = "userId";
|
||||||
|
|
||||||
/**
|
|
||||||
* 用户名
|
|
||||||
*/
|
|
||||||
public static final String USER_NAME_KEY = "userName";
|
public static final String USER_NAME_KEY = "userName";
|
||||||
|
|
||||||
/**
|
|
||||||
* 部门ID
|
|
||||||
*/
|
|
||||||
public static final String DEPT_KEY = "deptId";
|
public static final String DEPT_KEY = "deptId";
|
||||||
|
|
||||||
/**
|
|
||||||
* 部门名称
|
|
||||||
*/
|
|
||||||
public static final String DEPT_NAME_KEY = "deptName";
|
public static final String DEPT_NAME_KEY = "deptName";
|
||||||
|
public static final String CLIENT_KEY = "clientid";
|
||||||
/**
|
|
||||||
* 客户端ID
|
|
||||||
*/
|
|
||||||
public static final String CLIENT_KEY = "clientId";
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 登录系统 基于 设备类型
|
* 登录系统 基于 设备类型
|
||||||
|
|
|
||||||
|
|
@ -25,7 +25,7 @@ public class GlobalCorsFilter implements WebFilter, Ordered {
|
||||||
/**
|
/**
|
||||||
* 这里为支持的请求头,如果有自定义的header字段请自己添加
|
* 这里为支持的请求头,如果有自定义的header字段请自己添加
|
||||||
*/
|
*/
|
||||||
private static final String ALLOWED_HEADERS = "X-Requested-With, Content-Language, Content-Type, Authorization, clientId, credential, X-XSRF-TOKEN, isToken, token, Admin-Token, App-Token";
|
private static final String ALLOWED_HEADERS = "X-Requested-With, Content-Language, Content-Type, Authorization, clientid, credential, X-XSRF-TOKEN, isToken, token, Admin-Token, App-Token";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 允许的请求方法
|
* 允许的请求方法
|
||||||
|
|
|
||||||
|
|
@ -48,7 +48,6 @@ public class GlobalLogFilter implements GlobalFilter, Ordered {
|
||||||
if (WebFluxUtils.isJsonRequest(exchange)) {
|
if (WebFluxUtils.isJsonRequest(exchange)) {
|
||||||
if (apiDecryptProperties.getEnabled()
|
if (apiDecryptProperties.getEnabled()
|
||||||
&& ObjectUtil.isNotNull(request.getHeaders().getFirst(apiDecryptProperties.getHeaderFlag()))) {
|
&& ObjectUtil.isNotNull(request.getHeaders().getFirst(apiDecryptProperties.getHeaderFlag()))) {
|
||||||
//加密开启并且请求标识不能为空
|
|
||||||
log.info("[PLUS]开始请求 => URL[{}],参数类型[encrypt]", url);
|
log.info("[PLUS]开始请求 => URL[{}],参数类型[encrypt]", url);
|
||||||
} else {
|
} else {
|
||||||
String jsonParam = WebFluxUtils.resolveBodyFromCacheRequest(exchange);
|
String jsonParam = WebFluxUtils.resolveBodyFromCacheRequest(exchange);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue