mirror of
https://github.com/ZSCNetSupportDept/WechatTicketSystem.git
synced 2025-10-29 16:14:16 +08:00
Compare commits
10 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2cf480ee85 | ||
|
|
f855d5b348 | ||
|
|
af2fbfd3bf | ||
|
|
ee608c63fc | ||
|
|
f987ce0ef6 | ||
|
|
d94e524236 | ||
|
|
a6d7918ffe | ||
|
|
485260d12a | ||
|
|
b3ac50e327 | ||
|
|
5e6708fca8 |
1
.gitignore
vendored
1
.gitignore
vendored
@@ -2,3 +2,4 @@
|
|||||||
.idea/
|
.idea/
|
||||||
*.iml
|
*.iml
|
||||||
/target
|
/target
|
||||||
|
.vscode
|
||||||
@@ -22,7 +22,7 @@ submit pull requests to `master` branch will be ignored.
|
|||||||
## TroubleShooting
|
## TroubleShooting
|
||||||
- Before you report a bug, please [search the issue tracker](https://github.com/ZSCNetSupportDept/WechatTicketSystem/issues) to see if someone has already reported the problem.
|
- Before you report a bug, please [search the issue tracker](https://github.com/ZSCNetSupportDept/WechatTicketSystem/issues) to see if someone has already reported the problem.
|
||||||
- If the issue doesn’t already exist, [create a new issue](https://github.com/ZSCNetSupportDept/WechatTicketSystem/issues/new).
|
- If the issue doesn’t already exist, [create a new issue](https://github.com/ZSCNetSupportDept/WechatTicketSystem/issues/new).
|
||||||
- Please provide as much information as possible with the issue report, we like to know the version of FYoung4j that you are using, as well as your Operating System and JVM version.
|
- Please provide as much information as possible with the issue report, we like to know the version you are using, as well as your Operating System and JVM version.
|
||||||
- If you need to paste code, or include a stack trace use Markdown ```` ``` ```` escapes before and after your text.
|
- If you need to paste code, or include a stack trace use Markdown ```` ``` ```` escapes before and after your text.
|
||||||
|
|
||||||
## License
|
## License
|
||||||
|
|||||||
14
pom.xml
14
pom.xml
@@ -1,5 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
||||||
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<name>WechatTicketSystem</name>
|
<name>WechatTicketSystem</name>
|
||||||
@@ -36,6 +37,11 @@
|
|||||||
<path>/WechatTicketSystem</path>
|
<path>/WechatTicketSystem</path>
|
||||||
</configuration>
|
</configuration>
|
||||||
</plugin>
|
</plugin>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
|
<artifactId>maven-war-plugin</artifactId>
|
||||||
|
<version>3.3.2</version>
|
||||||
|
</plugin>
|
||||||
</plugins>
|
</plugins>
|
||||||
</build>
|
</build>
|
||||||
|
|
||||||
@@ -88,9 +94,9 @@
|
|||||||
<version>1.3.3</version>
|
<version>1.3.3</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.zaxxer</groupId>
|
<groupId>com.mchange</groupId>
|
||||||
<artifactId>HikariCP</artifactId>
|
<artifactId>c3p0</artifactId>
|
||||||
<version>3.3.0</version>
|
<version>0.9.5.4</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>mysql</groupId>
|
<groupId>mysql</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)[0-9]{9}$";
|
public static final String STUDENT_ID_REGEX = "^(2|1)[0-9]{9,12}$";
|
||||||
public static final String PHONE_NUMBER_REGEX = "^1[34578][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;
|
||||||
|
|||||||
@@ -67,13 +67,13 @@ Operator_Info: |
|
|||||||
|
|
||||||
若以上信息有误,请及时联系@15-沙子森。
|
若以上信息有误,请及时联系@15-沙子森。
|
||||||
#URL
|
#URL
|
||||||
User_Register_Link: 'http://wwbx.zsc.edu.cn/nm/v2/user/reg.html?token={0}'
|
User_Register_Link: 'https://wwbx.davisye.cn/nm/v2/user/reg.html?token={0}'
|
||||||
User_Query_Link: 'http://wwbx.zsc.edu.cn/nm/v2/user/list.html?token={0}'
|
User_Query_Link: 'https://wwbx.davisye.cn/nm/v2/user/list.html?token={0}'
|
||||||
User_Submit_Link: 'http://wwbx.zsc.edu.cn/nm/v2/user/rrepair.html?token={0}&name={1}&isp={2}&room={3}&block={4}&phone={5,number,#}'
|
User_Submit_Link: 'https://wwbx.davisye.cn/nm/v2/user/rrepair.html?token={0}&name={1}&isp={2}&room={3}&block={4}&phone={5,number,#}'
|
||||||
User_Profile_Link: 'http://wwbx.zsc.edu.cn/nm/v2/user/modi.html?token={0}&name={1}&isp={2}&username={3}&block={4}&room={5}&phone={6,number,#}'
|
User_Profile_Link: 'https://wwbx.davisye.cn/nm/v2/user/modi.html?token={0}&name={1}&isp={2}&username={3}&block={4}&room={5}&phone={6,number,#}'
|
||||||
Result_Page: 'http://wwbx.zsc.edu.cn/nm/v2/result.html'
|
Result_Page: 'https://wwbx.davisye.cn/nm/v2/result.html'
|
||||||
Operator_Home_Page: 'http://wwbx.zsc.edu.cn/nm/v2/man/home.html?token={0}'
|
Operator_Home_Page: 'https://wwbx.davisye.cn/nm/v2/man/home.html?token={0}'
|
||||||
Operator_Login_Page: 'http://wwbx.zsc.edu.cn/nm/v2/man/login.html?pkey={0}'
|
Operator_Login_Page: 'https://wwbx.davisye.cn/nm/v2/man/login.html?pkey={0}'
|
||||||
|
|
||||||
#Localized
|
#Localized
|
||||||
#Status
|
#Status
|
||||||
|
|||||||
@@ -31,17 +31,17 @@
|
|||||||
{
|
{
|
||||||
"type": "view",
|
"type": "view",
|
||||||
"name": "关于报修系统",
|
"name": "关于报修系统",
|
||||||
"url": "http://wwbx.zsc.edu.cn/nm/v2/"
|
"url": "https://wwbx.davisye.cn/nm/v2/"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "view",
|
"type": "view",
|
||||||
"name": "联系我们",
|
"name": "联系我们",
|
||||||
"url": "http://wwbx.zsc.edu.cn/nm/v2/404.html"
|
"url": "https://wwbx.davisye.cn/nm/v2/404.html"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "view",
|
"type": "view",
|
||||||
"name": "关于网维",
|
"name": "关于网维",
|
||||||
"url": "http://wwbx.zsc.edu.cn/nm/v2/404.html"
|
"url": "https://wwbx.davisye.cn/nm/v2/404.html"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -23,12 +23,12 @@
|
|||||||
<!--
|
<!--
|
||||||
<Manager pathname="" />
|
<Manager pathname="" />
|
||||||
-->
|
-->
|
||||||
<Resource auth="Container" description="HikariCP database connection pool"
|
<Resource auth="Container" description="C3P0 database connection pool"
|
||||||
driverClass="com.mysql.jdbc.Driver" maxPoolSize="10" minPoolSize="2" acquireIncrement="1"
|
driverClass="com.mysql.jdbc.Driver" maxPoolSize="10" minPoolSize="2" acquireIncrement="1"
|
||||||
maxIdleTime="3600" idleConnectionTestPeriod="1800" name="jdbc/netsupport" user="root"
|
maxIdleTime="3600" idleConnectionTestPeriod="1800" name="jdbc/netsupport" user="${DATABASE_USER}"
|
||||||
password="" factory="org.apache.naming.factory.BeanFactory"
|
password="${DATABASE_PASSWORD}" factory="org.apache.naming.factory.BeanFactory"
|
||||||
type="com.zaxxer.hikari.HikariDataSource"
|
type="com.mchange.v2.c3p0.ComboPooledDataSource"
|
||||||
jdbcUrl="jdbc:mysql://localhost:3306/netsupport?autoReconnect=true&characterEncoding=utf8" />
|
jdbcUrl="jdbc:mysql://${DATABASE_HOST}:3306/netsupport?autoReconnect=true&characterEncoding=utf8" />
|
||||||
<!-- Uncomment this to enable Comet connection tacking (provides events
|
<!-- Uncomment this to enable Comet connection tacking (provides events
|
||||||
on session expiration as well as webapp lifecycle) -->
|
on session expiration as well as webapp lifecycle) -->
|
||||||
<!--
|
<!--
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ public class URLEncodeTest {
|
|||||||
.title("Test Title")
|
.title("Test Title")
|
||||||
.msg("Test Message")
|
.msg("Test Message")
|
||||||
.toString(),
|
.toString(),
|
||||||
equalTo("http://wwbx.zsc.edu.cn/nm/v2/result.html?type=1&title=Test%20Title&msg=Test%20Message&")
|
equalTo("https://wwbx.davisye.cn/nm/v2/result.html?type=1&title=Test%20Title&msg=Test%20Message&")
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user