修改了公共组件
This commit is contained in:
parent
d13649f827
commit
d55ad9bf69
|
|
@ -12,7 +12,6 @@ public class InvokeUtility {
|
|||
* 根据属性名获取属性值
|
||||
* */
|
||||
public static Object getFieldValueByName(String fieldName, Object o) {
|
||||
|
||||
try {
|
||||
return Arrays.stream(fieldName.split("\\."))
|
||||
.reduce(o, (obj,property)->{
|
||||
|
|
|
|||
|
|
@ -62,7 +62,6 @@ 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;
|
||||
|
|
|
|||
|
|
@ -45,7 +45,6 @@ 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")) {
|
||||
|
|
|
|||
|
|
@ -79,7 +79,6 @@ public class PermissionUtils {
|
|||
result = result && PATH_MATCHER.match(r.getResourcePath(), resourcePath);
|
||||
return result;
|
||||
});
|
||||
|
||||
} catch (IOException e) {
|
||||
log.error(e.getMessage(), e);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue