修改了公共组件
This commit is contained in:
parent
d13649f827
commit
d55ad9bf69
|
|
@ -12,7 +12,6 @@ public class InvokeUtility {
|
||||||
* 根据属性名获取属性值
|
* 根据属性名获取属性值
|
||||||
* */
|
* */
|
||||||
public static Object getFieldValueByName(String fieldName, Object o) {
|
public static Object getFieldValueByName(String fieldName, Object o) {
|
||||||
|
|
||||||
try {
|
try {
|
||||||
return Arrays.stream(fieldName.split("\\."))
|
return Arrays.stream(fieldName.split("\\."))
|
||||||
.reduce(o, (obj,property)->{
|
.reduce(o, (obj,property)->{
|
||||||
|
|
|
||||||
|
|
@ -62,7 +62,6 @@ public class ValidateIdCardUtil {
|
||||||
public static boolean isIDCard(String certNo) {
|
public static boolean isIDCard(String certNo) {
|
||||||
if (certNo == null || (certNo.length() != 15 && certNo.length() != 18))
|
if (certNo == null || (certNo.length() != 15 && certNo.length() != 18))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
final char[] cs = certNo.toUpperCase().toCharArray();
|
final char[] cs = certNo.toUpperCase().toCharArray();
|
||||||
//校验位数
|
//校验位数
|
||||||
int power = 0;
|
int power = 0;
|
||||||
|
|
|
||||||
|
|
@ -45,7 +45,6 @@ public class JsonTokenValidatorInterceptor implements HandlerInterceptor {
|
||||||
public boolean preHandle(HttpServletRequest request, @NonNull HttpServletResponse response, @NonNull Object o) throws Exception {
|
public boolean preHandle(HttpServletRequest request, @NonNull HttpServletResponse response, @NonNull Object o) throws Exception {
|
||||||
boolean tokenValidateResult;
|
boolean tokenValidateResult;
|
||||||
String token = request.getHeader(Constants.Headers.AUTH_TOKEN);
|
String token = request.getHeader(Constants.Headers.AUTH_TOKEN);
|
||||||
|
|
||||||
String mToken = request.getHeader(AUTH_TOKEN_MOBILE);
|
String mToken = request.getHeader(AUTH_TOKEN_MOBILE);
|
||||||
|
|
||||||
if (request.getMethod().equalsIgnoreCase("options")) {
|
if (request.getMethod().equalsIgnoreCase("options")) {
|
||||||
|
|
|
||||||
|
|
@ -79,7 +79,6 @@ public class PermissionUtils {
|
||||||
result = result && PATH_MATCHER.match(r.getResourcePath(), resourcePath);
|
result = result && PATH_MATCHER.match(r.getResourcePath(), resourcePath);
|
||||||
return result;
|
return result;
|
||||||
});
|
});
|
||||||
|
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
log.error(e.getMessage(), e);
|
log.error(e.getMessage(), e);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue