mirror of
https://github.com/ZSCNetSupportDept/WechatTicketSystem.git
synced 2025-10-30 01:46:18 +08:00
Compare commits
3 Commits
dependabot
...
dependabot
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
325d96fcff | ||
|
|
af2fbfd3bf | ||
|
|
ee608c63fc |
4
pom.xml
4
pom.xml
@@ -49,7 +49,7 @@
|
|||||||
<dependency>
|
<dependency>
|
||||||
<groupId>junit</groupId>
|
<groupId>junit</groupId>
|
||||||
<artifactId>junit</artifactId>
|
<artifactId>junit</artifactId>
|
||||||
<version>4.13.1</version>
|
<version>4.12</version>
|
||||||
<scope>test</scope>
|
<scope>test</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
@@ -95,7 +95,7 @@
|
|||||||
<dependency>
|
<dependency>
|
||||||
<groupId>mysql</groupId>
|
<groupId>mysql</groupId>
|
||||||
<artifactId>mysql-connector-java</artifactId>
|
<artifactId>mysql-connector-java</artifactId>
|
||||||
<version>5.1.37</version>
|
<version>8.0.28</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.hibernate</groupId>
|
<groupId>org.hibernate</groupId>
|
||||||
|
|||||||
@@ -27,9 +27,9 @@ import static love.sola.netsupport.config.Lang.lang;
|
|||||||
*/
|
*/
|
||||||
public enum ISP {
|
public enum ISP {
|
||||||
|
|
||||||
TELECOM(1, "^1[3|4|5|7|8][0-9]{9}$"),
|
TELECOM(1, "^1[3|4|5|6|7|8|9][0-9]{9}$"),
|
||||||
UNICOM(2, "ZSZJLAN[0-9]{10}@16900\\.gd"),
|
UNICOM(2, "^\\w+([-+.]\\w+)*@16900\\.gd"),
|
||||||
CHINAMOBILE(3, "^1[3|4|5|7|8][0-9]{9}@139\\.gd$"),
|
CHINAMOBILE(3, "^1[3|4|5|6|7|8|9][0-9]{9}@139\\.gd$"),
|
||||||
OTHER(4, ".*"),
|
OTHER(4, ".*"),
|
||||||
;
|
;
|
||||||
|
|
||||||
|
|||||||
@@ -25,8 +25,8 @@ import love.sola.netsupport.enums.ISP;
|
|||||||
*/
|
*/
|
||||||
public class Checker {
|
public class Checker {
|
||||||
|
|
||||||
public static final String STUDENT_ID_REGEX = "^(2015|2016|2017|2018|2019)[0-9]{9}$";
|
public static final String STUDENT_ID_REGEX = "^(2|1)[0-9]{9,12}$";
|
||||||
public static final String PHONE_NUMBER_REGEX = "^1[345789][0-9]{9}$";
|
public static final String PHONE_NUMBER_REGEX = "^1[3456789][0-9]{9}$";
|
||||||
|
|
||||||
public static boolean hasNull(Object... v) {
|
public static boolean hasNull(Object... v) {
|
||||||
for (Object o : v) if (o == null) return true;
|
for (Object o : v) if (o == null) return true;
|
||||||
|
|||||||
Reference in New Issue
Block a user