最新代码

This commit is contained in:
admin
2024-04-19 17:20:40 +08:00
parent e4032a0183
commit 993f975edd
82 changed files with 2618 additions and 248 deletions

View File

@@ -1,5 +1,6 @@
package com.starry.common.filter;
import cn.hutool.core.util.StrUtil;
import com.starry.common.utils.StringUtils;
import javax.servlet.*;
@@ -32,11 +33,11 @@ public class XssFilter implements Filter {
public void init(FilterConfig filterConfig) {
String tempExcludes = filterConfig.getInitParameter("excludes");
String tempEnabled = filterConfig.getInitParameter("enabled");
if (StringUtils.isNotEmpty(tempExcludes)) {
if (StrUtil.isNotBlank(tempExcludes)) {
String[] url = tempExcludes.split(",");
excludes.addAll(Arrays.asList(url));
}
if (StringUtils.isNotEmpty(tempEnabled)) {
if (StrUtil.isNotBlank(tempEnabled)) {
enabled = Boolean.parseBoolean(tempEnabled);
}
}

View File

@@ -10,7 +10,8 @@ public enum ResultCodeEnum implements IBaseEnum {
FAILED(500, "操作失败"),
VALIDATE_FAILED(404, "参数检验失败"),
UNAUTHORIZED(401, "无效的会话,或者会话已过期,请重新登录。"),
FORBIDDEN(403, "没有相关权限");
FORBIDDEN(403, "没有相关权限"),
TENANT_NOT_FOUND(403, "租户不存在");
private final int code;
private final String message;

View File

@@ -1,7 +1,7 @@
package com.starry.common.utils;
/**
* @author 杭州世平信息科技有限公司-xuhq
* @author admin
* @since 2024/4/9 13:53
**/
public class VerificationCodeUtils {