remove OAuth2, add new block

Signed-off-by: Sola <dev@sola.love>
This commit is contained in:
Sola
2017-12-11 16:03:59 +08:00
parent c32a938dc7
commit abe2e1a125
5 changed files with 14 additions and 49 deletions

View File

@@ -60,6 +60,7 @@ public class Block {
public static final int BS_7 = 66;
public static final int BS_8 = 67;
public static final int BS_9 = 68;
public static final int ZH = 80;
public static final Map<Integer, String> inverseMap = new HashMap<>();
@@ -76,7 +77,7 @@ public class Block {
}
}
private static final int[][] AVAILABLE = new int[70][0];
private static final int[][] AVAILABLE = new int[100][0];
static {
// @formatter:off
@@ -117,6 +118,7 @@ public class Block {
AVAILABLE[BS_7] = new int[]{102, 203, 301};
AVAILABLE[BS_8] = new int[]{102, 203, 301};
AVAILABLE[BS_9] = new int[]{103, 203, 302};
AVAILABLE[ZH] = new int[]{199, 299, 399, 499, 599, 699, 799, 899, 999, 1099, 1199, 1299, 1399};
// @formatter:on
}

View File

@@ -25,7 +25,7 @@ import love.sola.netsupport.enums.ISP;
*/
public class Checker {
public static final String STUDENT_ID_REGEX = "^(2010|2012|2013|2014|2015|2016)[0-9]{9}$";
public static final String STUDENT_ID_REGEX = "^(2014|2015|2016|2017)[0-9]{9}$";
public static final String PHONE_NUMBER_REGEX = "^1[34578][0-9]{9}$";
public static boolean hasNull(Object... v) {