修改系统后端bug

This commit is contained in:
jiangzongtao 2025-05-23 18:52:32 +08:00
parent f07b65ffb4
commit d13649f827
4 changed files with 4 additions and 0 deletions

View File

@ -12,6 +12,7 @@ public class InvokeUtility {
* 根据属性名获取属性值
* */
public static Object getFieldValueByName(String fieldName, Object o) {
try {
return Arrays.stream(fieldName.split("\\."))
.reduce(o, (obj,property)->{

View File

@ -62,6 +62,7 @@ public class ValidateIdCardUtil {
public static boolean isIDCard(String certNo) {
if (certNo == null || (certNo.length() != 15 && certNo.length() != 18))
return false;
final char[] cs = certNo.toUpperCase().toCharArray();
//校验位数
int power = 0;

View File

@ -45,6 +45,7 @@ public class JsonTokenValidatorInterceptor implements HandlerInterceptor {
public boolean preHandle(HttpServletRequest request, @NonNull HttpServletResponse response, @NonNull Object o) throws Exception {
boolean tokenValidateResult;
String token = request.getHeader(Constants.Headers.AUTH_TOKEN);
String mToken = request.getHeader(AUTH_TOKEN_MOBILE);
if (request.getMethod().equalsIgnoreCase("options")) {

View File

@ -79,6 +79,7 @@ public class PermissionUtils {
result = result && PATH_MATCHER.match(r.getResourcePath(), resourcePath);
return result;
});
} catch (IOException e) {
log.error(e.getMessage(), e);
}