@@ -137,4 +137,19 @@ public class CatalogueUtil {
return false;
}
+ /**
+ * 对比两个去除了特殊字符的字符串是否一致
+ * @param firstStr
+ * @param secondStr
+ * @return
+ */
+ public static boolean compareToken(String firstStr, String secondStr) {
+ if (!isEmpty(firstStr) && !isEmpty(secondStr)) {
+ if (removeSpecialChar(firstStr).equals(removeSpecialChar(secondStr))) {
+ return true;
+ }
+ return false;
+