From 81a52327fee469b4f32039c1a417843727a17c2b Mon Sep 17 00:00:00 2001 From: Sola Date: Sun, 27 Mar 2016 16:53:33 +0800 Subject: [PATCH 1/7] start 2.1 --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index f3bd560..b9ed1f7 100644 --- a/pom.xml +++ b/pom.xml @@ -5,7 +5,7 @@ WechatTicketSystem love.sola.netsupport WechatTicketSystem - 2.0 + 2.1-SNAPSHOT war From 1e18bc3179423506862155c14405879dbf4bf1af Mon Sep 17 00:00:00 2001 From: Sola Date: Mon, 18 Apr 2016 16:18:50 +0800 Subject: [PATCH 2/7] cortana test --- .../love/sola/netsupport/config/Cortana.java | 19 ++++++++++++++----- .../sola/netsupport/config/CortanaTest.java | 18 ++++++++++++++++++ src/test/resources/cortana.yml | 16 ++++++++++++++++ 3 files changed, 48 insertions(+), 5 deletions(-) create mode 100644 src/test/java/love/sola/netsupport/config/CortanaTest.java create mode 100644 src/test/resources/cortana.yml diff --git a/src/main/java/love/sola/netsupport/config/Cortana.java b/src/main/java/love/sola/netsupport/config/Cortana.java index 2947715..9565116 100644 --- a/src/main/java/love/sola/netsupport/config/Cortana.java +++ b/src/main/java/love/sola/netsupport/config/Cortana.java @@ -1,5 +1,6 @@ package love.sola.netsupport.config; +import lombok.Data; import org.yaml.snakeyaml.Yaml; import java.io.InputStream; @@ -15,19 +16,27 @@ import java.util.regex.Pattern; */ public class Cortana { - public static List entries; public static void load() { InputStream in = Lang.class.getClassLoader().getResourceAsStream("cortana.yml"); - Map root = (Map) new Yaml().load(in); - + RawConfig root = new Yaml().loadAs(in, RawConfig.class); } - - public static class Compiled { + static class Compiled { Pattern[] patterns; String[] replies; } + @Data + public static class Rule { + String[] regexp; + String[] replies; + } + + @Data + public static class RawConfig { + Map rules; + } + } diff --git a/src/test/java/love/sola/netsupport/config/CortanaTest.java b/src/test/java/love/sola/netsupport/config/CortanaTest.java new file mode 100644 index 0000000..0809f48 --- /dev/null +++ b/src/test/java/love/sola/netsupport/config/CortanaTest.java @@ -0,0 +1,18 @@ +package love.sola.netsupport.config; + +import org.junit.Test; + +/** + * *********************************************** + * Created by Sola on 2016/4/18. + * Don't modify this source without my agreement + * *********************************************** + */ +public class CortanaTest { + + @Test + public void load() throws Exception { + Cortana.load(); + } + +} \ No newline at end of file diff --git a/src/test/resources/cortana.yml b/src/test/resources/cortana.yml new file mode 100644 index 0000000..8535f8e --- /dev/null +++ b/src/test/resources/cortana.yml @@ -0,0 +1,16 @@ +rules: + rule1: + regexp: + - 'single test' + replies: + - 'single test' + rule2: + regexp: ['inline test', 'inline test'] + replies: ['inline test', 'inline test'] + rule3: + regexp: + - 'multi line test' + - 'multi line test' + replies: + - 'multi line test' + - 'multi line test' From bd8e78b1965171d0b4d2803bc9bb061a4f7316b7 Mon Sep 17 00:00:00 2001 From: Sola Date: Mon, 18 Apr 2016 16:19:01 +0800 Subject: [PATCH 3/7] update menu --- src/main/resources/menu-op.json | 20 +++++++++++++++++ src/main/resources/menu.json | 40 +++++++++++++++++++++++++++++++++ 2 files changed, 60 insertions(+) diff --git a/src/main/resources/menu-op.json b/src/main/resources/menu-op.json index 6de9781..87b5859 100644 --- a/src/main/resources/menu-op.json +++ b/src/main/resources/menu-op.json @@ -25,6 +25,21 @@ } ] }, + { + "name": "工具箱", + "sub_button": [ + { + "type": "view", + "name": "电信宽带查余额", + "url": "http://util.sola.love/yue.html" + }, + { + "type": "view", + "name": "四六级成绩查询", + "url": "http://util.sola.love/cet.html" + } + ] + }, { "name": "OP", "sub_button": [ @@ -37,6 +52,11 @@ "type": "view", "name": "后台登录", "url": "https://open.weixin.qq.com/connect/oauth2/authorize?appid=wxb7a8b799e494b053&redirect_uri=http%3a%2f%2fwcs.sola.love%2foauth2%2fcallback&response_type=code&scope=snsapi_base&state=LOGIN#wechat_redirect" + }, + { + "type": "view", + "name": "网维留言板", + "url": "http://wcs.sola.love/oauth2/go" } ] } diff --git a/src/main/resources/menu.json b/src/main/resources/menu.json index 915fe72..d6be280 100644 --- a/src/main/resources/menu.json +++ b/src/main/resources/menu.json @@ -24,6 +24,46 @@ "url": "https://open.weixin.qq.com/connect/oauth2/authorize?appid=wxb7a8b799e494b053&redirect_uri=http%3a%2f%2fwcs.sola.love%2foauth2%2fcallback&response_type=code&scope=snsapi_base&state=PROFILE#wechat_redirect" } ] + }, + { + "name": "工具箱", + "sub_button": [ + { + "type": "view", + "name": "电信宽带查余额", + "url": "http://util.sola.love/yue.html" + }, + { + "type": "view", + "name": "四六级成绩查询", + "url": "http://util.sola.love/cet.html" + } + ] + }, + { + "name": "关于网维", + "sub_button": [ + { + "type": "view", + "name": "网维留言板", + "url": "http://wcs.sola.love/oauth2/go" + }, + { + "type": "view", + "name": "关于报修系统", + "url": "http://topaz.sinaapp.com/nm/v2/" + }, + { + "type": "view", + "name": "联系我们", + "url": "http://topaz.sinaapp.com/nm/v2/404.html" + }, + { + "type": "view", + "name": "关于网维", + "url": "http://topaz.sinaapp.com/nm/v2/404.html" + } + ] } ] } \ No newline at end of file From a43ebe24c48e66b70eaf456c82fef6d1eefdb5a2 Mon Sep 17 00:00:00 2001 From: Sola Date: Wed, 27 Apr 2016 18:30:54 +0800 Subject: [PATCH 4/7] update agreements --- src/main/java/love/sola/netsupport/Index.java | 5 +---- src/main/java/love/sola/netsupport/api/API.java | 5 +---- src/main/java/love/sola/netsupport/api/APIRouter.java | 5 +---- src/main/java/love/sola/netsupport/api/CheckSession.java | 5 +---- src/main/java/love/sola/netsupport/api/Error.java | 5 +---- src/main/java/love/sola/netsupport/api/Login.java | 5 +---- src/main/java/love/sola/netsupport/api/manager/GetUser.java | 5 +---- .../java/love/sola/netsupport/api/manager/TicketPush.java | 5 +---- src/main/java/love/sola/netsupport/api/root/DashBoard.java | 5 +---- src/main/java/love/sola/netsupport/api/root/FlushCache.java | 5 +---- src/main/java/love/sola/netsupport/api/root/SetPassword.java | 5 +---- src/main/java/love/sola/netsupport/api/stuff/TicketLog.java | 5 +---- .../java/love/sola/netsupport/api/stuff/TicketLookup.java | 5 +---- .../java/love/sola/netsupport/api/stuff/TicketTrack.java | 5 +---- .../java/love/sola/netsupport/api/stuff/TicketUpdate.java | 5 +---- .../java/love/sola/netsupport/api/user/ProfileModify.java | 5 +---- src/main/java/love/sola/netsupport/api/user/Register.java | 5 +---- src/main/java/love/sola/netsupport/api/user/TicketQuery.java | 5 +---- .../java/love/sola/netsupport/api/user/TicketSubmit.java | 5 +---- src/main/java/love/sola/netsupport/auth/OAuth2.java | 5 +---- src/main/java/love/sola/netsupport/auth/OAuth2Handler.java | 5 +---- src/main/java/love/sola/netsupport/config/Cortana.java | 5 +---- src/main/java/love/sola/netsupport/config/Lang.java | 5 +---- src/main/java/love/sola/netsupport/config/Settings.java | 5 +---- .../sola/netsupport/config/WxMpXmlInMemoryConfigStorage.java | 3 +++ src/main/java/love/sola/netsupport/enums/Access.java | 5 +---- src/main/java/love/sola/netsupport/enums/Attribute.java | 5 +---- src/main/java/love/sola/netsupport/enums/Block.java | 5 +---- src/main/java/love/sola/netsupport/enums/ISP.java | 5 +---- src/main/java/love/sola/netsupport/enums/ISPConverter.java | 3 +++ src/main/java/love/sola/netsupport/enums/Status.java | 5 +---- src/main/java/love/sola/netsupport/pojo/Operator.java | 5 +---- src/main/java/love/sola/netsupport/pojo/Ticket.java | 5 +---- src/main/java/love/sola/netsupport/pojo/User.java | 5 +---- src/main/java/love/sola/netsupport/session/MapSession.java | 2 +- .../love/sola/netsupport/session/MapSessionRepository.java | 2 +- .../java/love/sola/netsupport/session/WechatSession.java | 5 +---- src/main/java/love/sola/netsupport/session/WxSession.java | 2 +- src/main/java/love/sola/netsupport/sql/SQLCore.java | 5 +---- src/main/java/love/sola/netsupport/sql/TableConfig.java | 5 +---- src/main/java/love/sola/netsupport/sql/TableOperator.java | 5 +---- src/main/java/love/sola/netsupport/sql/TableTicket.java | 5 +---- src/main/java/love/sola/netsupport/sql/TableUser.java | 5 +---- src/main/java/love/sola/netsupport/util/Checker.java | 5 +---- src/main/java/love/sola/netsupport/util/Crypto.java | 5 +---- src/main/java/love/sola/netsupport/util/ParseUtil.java | 5 +---- src/main/java/love/sola/netsupport/util/RSAUtil.java | 3 +++ src/main/java/love/sola/netsupport/util/Redirect.java | 5 +---- src/main/java/love/sola/netsupport/wechat/Command.java | 5 +---- src/main/java/love/sola/netsupport/wechat/WxMpServlet.java | 5 +---- .../sola/netsupport/wechat/handler/AutoReplyHandler.java | 5 +---- .../love/sola/netsupport/wechat/handler/CancelHandler.java | 5 +---- .../love/sola/netsupport/wechat/handler/ProfileHandler.java | 5 +---- .../love/sola/netsupport/wechat/handler/QueryHandler.java | 5 +---- .../love/sola/netsupport/wechat/handler/RegisterHandler.java | 5 +---- .../love/sola/netsupport/wechat/handler/SubmitHandler.java | 5 +---- .../sola/netsupport/wechat/handler/SubscribeHandler.java | 5 +---- .../sola/netsupport/wechat/handler/admin/LoginHandler.java | 5 +---- .../netsupport/wechat/handler/admin/OperatorInfoHandler.java | 5 +---- .../sola/netsupport/wechat/handler/admin/SignHandler.java | 5 +---- .../sola/netsupport/wechat/matcher/CheckSpamMatcher.java | 5 +---- .../love/sola/netsupport/wechat/matcher/CommandMatcher.java | 5 +---- .../love/sola/netsupport/wechat/matcher/RegisterMatcher.java | 5 +---- src/test/java/love/sola/netsupport/api/ReflectionTest.java | 5 +---- src/test/java/love/sola/netsupport/config/CortanaTest.java | 5 +---- .../java/love/sola/netsupport/config/ReflectionTest.java | 5 +---- src/test/java/love/sola/netsupport/enums/ReflectionTest.java | 5 +---- src/test/java/love/sola/netsupport/util/EncryptTest.java | 5 +---- src/test/java/love/sola/netsupport/util/GsonTest.java | 5 +---- src/test/java/love/sola/netsupport/util/URLEncodeTest.java | 5 +---- 70 files changed, 76 insertions(+), 259 deletions(-) diff --git a/src/main/java/love/sola/netsupport/Index.java b/src/main/java/love/sola/netsupport/Index.java index 32bf21f..b6468e7 100644 --- a/src/main/java/love/sola/netsupport/Index.java +++ b/src/main/java/love/sola/netsupport/Index.java @@ -9,10 +9,7 @@ import java.io.IOException; import java.io.PrintWriter; /** - * *********************************************** - * Created by Sola on 2014/8/4. - * Don't modify this source without my agreement - * *********************************************** + * @author Sola {@literal } */ @WebServlet(name = "Index",urlPatterns = "/index",loadOnStartup = 1) public class Index extends HttpServlet { diff --git a/src/main/java/love/sola/netsupport/api/API.java b/src/main/java/love/sola/netsupport/api/API.java index ac4bada..9fe6699 100644 --- a/src/main/java/love/sola/netsupport/api/API.java +++ b/src/main/java/love/sola/netsupport/api/API.java @@ -7,10 +7,7 @@ import love.sola.netsupport.wechat.Command; import javax.servlet.http.HttpServletRequest; /** - * *********************************************** - * Created by Sola on 2016/2/27. - * Don't modify this source without my agreement - * *********************************************** + * @author Sola {@literal } */ public abstract class API { diff --git a/src/main/java/love/sola/netsupport/api/APIRouter.java b/src/main/java/love/sola/netsupport/api/APIRouter.java index 1a19cc7..dfe0f51 100644 --- a/src/main/java/love/sola/netsupport/api/APIRouter.java +++ b/src/main/java/love/sola/netsupport/api/APIRouter.java @@ -24,10 +24,7 @@ import java.util.Map; import java.util.Set; /** - * *********************************************** - * Created by Sola on 2016/2/27. - * Don't modify this source without my agreement - * *********************************************** + * @author Sola {@literal } */ @WebServlet(name = "APIRouter", urlPatterns = "/api/*", loadOnStartup = 11) public class APIRouter extends HttpServlet { diff --git a/src/main/java/love/sola/netsupport/api/CheckSession.java b/src/main/java/love/sola/netsupport/api/CheckSession.java index c4d2081..5f15a17 100644 --- a/src/main/java/love/sola/netsupport/api/CheckSession.java +++ b/src/main/java/love/sola/netsupport/api/CheckSession.java @@ -9,10 +9,7 @@ import java.util.HashMap; import java.util.Map; /** - * *********************************************** - * Created by Sola on 2015/12/21. - * Don't modify this source without my agreement - * *********************************************** + * @author Sola {@literal } */ public class CheckSession extends API { diff --git a/src/main/java/love/sola/netsupport/api/Error.java b/src/main/java/love/sola/netsupport/api/Error.java index 80ca350..624dda2 100644 --- a/src/main/java/love/sola/netsupport/api/Error.java +++ b/src/main/java/love/sola/netsupport/api/Error.java @@ -3,10 +3,7 @@ package love.sola.netsupport.api; import static love.sola.netsupport.config.Lang.lang; /** - * *********************************************** - * Created by Sola on 2015/11/5. - * Don't modify this source without my agreement - * *********************************************** + * @author Sola {@literal } */ public class Error { diff --git a/src/main/java/love/sola/netsupport/api/Login.java b/src/main/java/love/sola/netsupport/api/Login.java index 7f9ef8d..152d1ba 100644 --- a/src/main/java/love/sola/netsupport/api/Login.java +++ b/src/main/java/love/sola/netsupport/api/Login.java @@ -23,10 +23,7 @@ import java.io.IOException; import java.io.PrintWriter; /** - * *********************************************** - * Created by Sola on 2015/12/12. - * Don't modify this source without my agreement - * *********************************************** + * @author Sola {@literal } */ @WebServlet(name = "Login", urlPatterns = "/api/admin/login", loadOnStartup = 12) diff --git a/src/main/java/love/sola/netsupport/api/manager/GetUser.java b/src/main/java/love/sola/netsupport/api/manager/GetUser.java index a6711f8..88cdb77 100644 --- a/src/main/java/love/sola/netsupport/api/manager/GetUser.java +++ b/src/main/java/love/sola/netsupport/api/manager/GetUser.java @@ -11,10 +11,7 @@ import love.sola.netsupport.wechat.Command; import javax.servlet.http.HttpServletRequest; /** - * *********************************************** - * Created by Sola on 2014/8/20. - * Don't modify this source without my agreement - * *********************************************** + * @author Sola {@literal } */ public class GetUser extends API { diff --git a/src/main/java/love/sola/netsupport/api/manager/TicketPush.java b/src/main/java/love/sola/netsupport/api/manager/TicketPush.java index e49f3de..61db57b 100644 --- a/src/main/java/love/sola/netsupport/api/manager/TicketPush.java +++ b/src/main/java/love/sola/netsupport/api/manager/TicketPush.java @@ -18,10 +18,7 @@ import org.hibernate.Session; import javax.servlet.http.HttpServletRequest; /** - * *********************************************** - * Created by Sola on 2015/12/22. - * Don't modify this source without my agreement - * *********************************************** + * @author Sola {@literal } */ public class TicketPush extends API { diff --git a/src/main/java/love/sola/netsupport/api/root/DashBoard.java b/src/main/java/love/sola/netsupport/api/root/DashBoard.java index ca39861..7951b98 100644 --- a/src/main/java/love/sola/netsupport/api/root/DashBoard.java +++ b/src/main/java/love/sola/netsupport/api/root/DashBoard.java @@ -10,10 +10,7 @@ import javax.servlet.http.HttpServletRequest; import java.util.Set; /** - * *********************************************** - * Created by Sola on 2015/12/15. - * Don't modify this source without my agreement - * *********************************************** + * @author Sola {@literal } */ public class DashBoard extends API { diff --git a/src/main/java/love/sola/netsupport/api/root/FlushCache.java b/src/main/java/love/sola/netsupport/api/root/FlushCache.java index dabfe7d..fe267a8 100644 --- a/src/main/java/love/sola/netsupport/api/root/FlushCache.java +++ b/src/main/java/love/sola/netsupport/api/root/FlushCache.java @@ -10,10 +10,7 @@ import love.sola.netsupport.wechat.Command; import javax.servlet.http.HttpServletRequest; /** - * *********************************************** - * Created by Sola on 2015/12/15. - * Don't modify this source without my agreement - * *********************************************** + * @author Sola {@literal } */ public class FlushCache extends API { diff --git a/src/main/java/love/sola/netsupport/api/root/SetPassword.java b/src/main/java/love/sola/netsupport/api/root/SetPassword.java index 069309d..51fadae 100644 --- a/src/main/java/love/sola/netsupport/api/root/SetPassword.java +++ b/src/main/java/love/sola/netsupport/api/root/SetPassword.java @@ -13,10 +13,7 @@ import org.hibernate.Session; import javax.servlet.http.HttpServletRequest; /** - * *********************************************** - * Created by Sola on 2015/12/20. - * Don't modify this source without my agreement - * *********************************************** + * @author Sola {@literal } */ public class SetPassword extends API { diff --git a/src/main/java/love/sola/netsupport/api/stuff/TicketLog.java b/src/main/java/love/sola/netsupport/api/stuff/TicketLog.java index 18f1173..77af4d1 100644 --- a/src/main/java/love/sola/netsupport/api/stuff/TicketLog.java +++ b/src/main/java/love/sola/netsupport/api/stuff/TicketLog.java @@ -18,10 +18,7 @@ import java.util.Calendar; import java.util.Date; /** - * *********************************************** - * Created by Sola on 2015/12/18. - * Don't modify this source without my agreement - * *********************************************** + * @author Sola {@literal } */ public class TicketLog extends API { diff --git a/src/main/java/love/sola/netsupport/api/stuff/TicketLookup.java b/src/main/java/love/sola/netsupport/api/stuff/TicketLookup.java index 298ba50..76dcb50 100644 --- a/src/main/java/love/sola/netsupport/api/stuff/TicketLookup.java +++ b/src/main/java/love/sola/netsupport/api/stuff/TicketLookup.java @@ -11,10 +11,7 @@ import love.sola.netsupport.wechat.Command; import javax.servlet.http.HttpServletRequest; /** - * *********************************************** - * Created by Sola on 2015/12/13. - * Don't modify this source without my agreement - * *********************************************** + * @author Sola {@literal } */ public class TicketLookup extends API { diff --git a/src/main/java/love/sola/netsupport/api/stuff/TicketTrack.java b/src/main/java/love/sola/netsupport/api/stuff/TicketTrack.java index 8343e2e..9146bcc 100644 --- a/src/main/java/love/sola/netsupport/api/stuff/TicketTrack.java +++ b/src/main/java/love/sola/netsupport/api/stuff/TicketTrack.java @@ -10,10 +10,7 @@ import love.sola.netsupport.wechat.Command; import javax.servlet.http.HttpServletRequest; /** - * *********************************************** - * Created by Sola on 2015/12/18. - * Don't modify this source without my agreement - * *********************************************** + * @author Sola {@literal } */ public class TicketTrack extends API { diff --git a/src/main/java/love/sola/netsupport/api/stuff/TicketUpdate.java b/src/main/java/love/sola/netsupport/api/stuff/TicketUpdate.java index 813714d..cfd2685 100644 --- a/src/main/java/love/sola/netsupport/api/stuff/TicketUpdate.java +++ b/src/main/java/love/sola/netsupport/api/stuff/TicketUpdate.java @@ -16,10 +16,7 @@ import javax.servlet.http.HttpServletRequest; import java.util.Date; /** - * *********************************************** - * Created by Sola on 2015/12/13. - * Don't modify this source without my agreement - * *********************************************** + * @author Sola {@literal } */ public class TicketUpdate extends API { diff --git a/src/main/java/love/sola/netsupport/api/user/ProfileModify.java b/src/main/java/love/sola/netsupport/api/user/ProfileModify.java index 07e5b54..da80166 100644 --- a/src/main/java/love/sola/netsupport/api/user/ProfileModify.java +++ b/src/main/java/love/sola/netsupport/api/user/ProfileModify.java @@ -16,10 +16,7 @@ import javax.servlet.http.HttpServletRequest; import static love.sola.netsupport.util.Checker.*; /** - * *********************************************** - * Created by Sola on 2015/12/15. - * Don't modify this source without my agreement - * *********************************************** + * @author Sola {@literal } */ public class ProfileModify extends API { diff --git a/src/main/java/love/sola/netsupport/api/user/Register.java b/src/main/java/love/sola/netsupport/api/user/Register.java index 74eea55..3016164 100644 --- a/src/main/java/love/sola/netsupport/api/user/Register.java +++ b/src/main/java/love/sola/netsupport/api/user/Register.java @@ -24,10 +24,7 @@ import java.sql.SQLException; import static love.sola.netsupport.util.Checker.*; /** - * *********************************************** - * Created by Sola on 2015/11/29. - * Don't modify this source without my agreement - * *********************************************** + * @author Sola {@literal } */ public class Register extends API { diff --git a/src/main/java/love/sola/netsupport/api/user/TicketQuery.java b/src/main/java/love/sola/netsupport/api/user/TicketQuery.java index b302f5f..23aaa5e 100644 --- a/src/main/java/love/sola/netsupport/api/user/TicketQuery.java +++ b/src/main/java/love/sola/netsupport/api/user/TicketQuery.java @@ -16,10 +16,7 @@ import org.hibernate.criterion.Restrictions; import javax.servlet.http.HttpServletRequest; /** - * *********************************************** - * Created by Sola on 2015/12/4. - * Don't modify this source without my agreement - * *********************************************** + * @author Sola {@literal } */ public class TicketQuery extends API { diff --git a/src/main/java/love/sola/netsupport/api/user/TicketSubmit.java b/src/main/java/love/sola/netsupport/api/user/TicketSubmit.java index f8d170b..36d4b79 100644 --- a/src/main/java/love/sola/netsupport/api/user/TicketSubmit.java +++ b/src/main/java/love/sola/netsupport/api/user/TicketSubmit.java @@ -16,10 +16,7 @@ import org.hibernate.Session; import javax.servlet.http.HttpServletRequest; /** - * *********************************************** - * Created by Sola on 2015/12/6. - * Don't modify this source without my agreement - * *********************************************** + * @author Sola {@literal } */ public class TicketSubmit extends API { diff --git a/src/main/java/love/sola/netsupport/auth/OAuth2.java b/src/main/java/love/sola/netsupport/auth/OAuth2.java index d0b39c0..355da50 100644 --- a/src/main/java/love/sola/netsupport/auth/OAuth2.java +++ b/src/main/java/love/sola/netsupport/auth/OAuth2.java @@ -18,10 +18,7 @@ import java.util.HashMap; import java.util.Map; /** - * *********************************************** - * Created by Sola on 2014/8/20. - * Don't modify this source without my agreement - * *********************************************** + * @author Sola {@literal } */ @WebServlet(name = "OAuth2", urlPatterns = "/oauth2/callback", loadOnStartup = 21, asyncSupported = true) public class OAuth2 extends HttpServlet { diff --git a/src/main/java/love/sola/netsupport/auth/OAuth2Handler.java b/src/main/java/love/sola/netsupport/auth/OAuth2Handler.java index fb08a24..00f4a99 100644 --- a/src/main/java/love/sola/netsupport/auth/OAuth2Handler.java +++ b/src/main/java/love/sola/netsupport/auth/OAuth2Handler.java @@ -6,10 +6,7 @@ import javax.servlet.AsyncContext; import javax.servlet.http.HttpServletResponse; /** - * *********************************************** - * Created by Sola on 2016/3/26. - * Don't modify this source without my agreement - * *********************************************** + * @author Sola {@literal } */ public interface OAuth2Handler { diff --git a/src/main/java/love/sola/netsupport/config/Cortana.java b/src/main/java/love/sola/netsupport/config/Cortana.java index 9565116..b584ba8 100644 --- a/src/main/java/love/sola/netsupport/config/Cortana.java +++ b/src/main/java/love/sola/netsupport/config/Cortana.java @@ -9,10 +9,7 @@ import java.util.Map; import java.util.regex.Pattern; /** - * *********************************************** - * Created by Sola on 2015/12/29. - * Don't modify this source without my agreement - * *********************************************** + * @author Sola {@literal } */ public class Cortana { diff --git a/src/main/java/love/sola/netsupport/config/Lang.java b/src/main/java/love/sola/netsupport/config/Lang.java index eeb5721..6934421 100644 --- a/src/main/java/love/sola/netsupport/config/Lang.java +++ b/src/main/java/love/sola/netsupport/config/Lang.java @@ -8,10 +8,7 @@ import java.util.HashMap; import java.util.Map; /** - * *********************************************** - * Created by Sola on 2015/11/30. - * Don't modify this source without my agreement - * *********************************************** + * @author Sola {@literal } */ public class Lang { diff --git a/src/main/java/love/sola/netsupport/config/Settings.java b/src/main/java/love/sola/netsupport/config/Settings.java index caca077..824862d 100644 --- a/src/main/java/love/sola/netsupport/config/Settings.java +++ b/src/main/java/love/sola/netsupport/config/Settings.java @@ -4,10 +4,7 @@ import lombok.ToString; import love.sola.netsupport.sql.TableConfig; /** - * *********************************************** - * Created by Sola on 2015/11/23. - * Don't modify this source without my agreement - * *********************************************** + * @author Sola {@literal } */ @ToString public class Settings { diff --git a/src/main/java/love/sola/netsupport/config/WxMpXmlInMemoryConfigStorage.java b/src/main/java/love/sola/netsupport/config/WxMpXmlInMemoryConfigStorage.java index 4594c86..66eea2d 100644 --- a/src/main/java/love/sola/netsupport/config/WxMpXmlInMemoryConfigStorage.java +++ b/src/main/java/love/sola/netsupport/config/WxMpXmlInMemoryConfigStorage.java @@ -8,6 +8,9 @@ import me.chanjar.weixin.mp.api.WxMpInMemoryConfigStorage; import java.io.InputStream; +/** + * @author chanjarster + */ @XStreamAlias("wechat-config") @ToString public class WxMpXmlInMemoryConfigStorage extends WxMpInMemoryConfigStorage { diff --git a/src/main/java/love/sola/netsupport/enums/Access.java b/src/main/java/love/sola/netsupport/enums/Access.java index 2f12f10..ff78f80 100644 --- a/src/main/java/love/sola/netsupport/enums/Access.java +++ b/src/main/java/love/sola/netsupport/enums/Access.java @@ -7,10 +7,7 @@ import java.util.Map; import static love.sola.netsupport.config.Lang.lang; /** - * *********************************************** - * Created by Sola on 2015/12/6. - * Don't modify this source without my agreement - * *********************************************** + * @author Sola {@literal } */ public class Access { diff --git a/src/main/java/love/sola/netsupport/enums/Attribute.java b/src/main/java/love/sola/netsupport/enums/Attribute.java index 381d449..ffb5d29 100644 --- a/src/main/java/love/sola/netsupport/enums/Attribute.java +++ b/src/main/java/love/sola/netsupport/enums/Attribute.java @@ -1,10 +1,7 @@ package love.sola.netsupport.enums; /** - * *********************************************** - * Created by Sola on 2015/12/14. - * Don't modify this source without my agreement - * *********************************************** + * @author Sola {@literal } */ public class Attribute { diff --git a/src/main/java/love/sola/netsupport/enums/Block.java b/src/main/java/love/sola/netsupport/enums/Block.java index 51f6702..dd136ff 100644 --- a/src/main/java/love/sola/netsupport/enums/Block.java +++ b/src/main/java/love/sola/netsupport/enums/Block.java @@ -5,10 +5,7 @@ import java.util.HashMap; import java.util.Map; /** - * *********************************************** - * Created by Sola on 2015/11/30. - * Don't modify this source without my agreement - * *********************************************** + * @author Sola {@literal } */ public class Block { diff --git a/src/main/java/love/sola/netsupport/enums/ISP.java b/src/main/java/love/sola/netsupport/enums/ISP.java index bd0d746..abc47a7 100644 --- a/src/main/java/love/sola/netsupport/enums/ISP.java +++ b/src/main/java/love/sola/netsupport/enums/ISP.java @@ -6,10 +6,7 @@ import java.util.Map; import static love.sola.netsupport.config.Lang.lang; /** - * *********************************************** - * Created by Sola on 2014/8/20. - * Don't modify this source without my agreement - * *********************************************** + * @author Sola {@literal } */ public enum ISP { diff --git a/src/main/java/love/sola/netsupport/enums/ISPConverter.java b/src/main/java/love/sola/netsupport/enums/ISPConverter.java index edec58b..027f575 100644 --- a/src/main/java/love/sola/netsupport/enums/ISPConverter.java +++ b/src/main/java/love/sola/netsupport/enums/ISPConverter.java @@ -3,6 +3,9 @@ package love.sola.netsupport.enums; import javax.persistence.AttributeConverter; import javax.persistence.Converter; +/** + * @author Sola {@literal } + */ @Converter public class ISPConverter implements AttributeConverter { diff --git a/src/main/java/love/sola/netsupport/enums/Status.java b/src/main/java/love/sola/netsupport/enums/Status.java index 4083633..ae602b1 100644 --- a/src/main/java/love/sola/netsupport/enums/Status.java +++ b/src/main/java/love/sola/netsupport/enums/Status.java @@ -7,10 +7,7 @@ import java.util.Map; import static love.sola.netsupport.config.Lang.lang; /** - * *********************************************** - * Created by Sola on 2015/12/6. - * Don't modify this source without my agreement - * *********************************************** + * @author Sola {@literal } */ public class Status { diff --git a/src/main/java/love/sola/netsupport/pojo/Operator.java b/src/main/java/love/sola/netsupport/pojo/Operator.java index fd7b1b6..4b73c6e 100644 --- a/src/main/java/love/sola/netsupport/pojo/Operator.java +++ b/src/main/java/love/sola/netsupport/pojo/Operator.java @@ -12,10 +12,7 @@ import javax.persistence.Id; import javax.persistence.Table; /** - * *********************************************** - * Created by Sola on 2015/12/6. - * Don't modify this source without my agreement - * *********************************************** + * @author Sola {@literal } */ @Data diff --git a/src/main/java/love/sola/netsupport/pojo/Ticket.java b/src/main/java/love/sola/netsupport/pojo/Ticket.java index 931255f..e880075 100644 --- a/src/main/java/love/sola/netsupport/pojo/Ticket.java +++ b/src/main/java/love/sola/netsupport/pojo/Ticket.java @@ -11,10 +11,7 @@ import javax.persistence.*; import java.util.Date; /** - * *********************************************** - * Created by Sola on 2015/12/2. - * Don't modify this source without my agreement - * *********************************************** + * @author Sola {@literal } */ @Data @AllArgsConstructor diff --git a/src/main/java/love/sola/netsupport/pojo/User.java b/src/main/java/love/sola/netsupport/pojo/User.java index bfb38c1..20f2b19 100644 --- a/src/main/java/love/sola/netsupport/pojo/User.java +++ b/src/main/java/love/sola/netsupport/pojo/User.java @@ -10,10 +10,7 @@ import love.sola.netsupport.enums.ISPConverter; import javax.persistence.*; /** - * *********************************************** - * Created by Sola on 2014/8/20. - * Don't modify this source without my agreement - * *********************************************** + * @author Sola {@literal } */ @Data @AllArgsConstructor diff --git a/src/main/java/love/sola/netsupport/session/MapSession.java b/src/main/java/love/sola/netsupport/session/MapSession.java index 9b8741f..7c67e04 100644 --- a/src/main/java/love/sola/netsupport/session/MapSession.java +++ b/src/main/java/love/sola/netsupport/session/MapSession.java @@ -26,7 +26,7 @@ import java.util.Set; import java.util.UUID; /** - * @author Sola + * @author Sola {@literal } */ @EqualsAndHashCode(of = "id") public final class MapSession implements WxSession, Serializable { diff --git a/src/main/java/love/sola/netsupport/session/MapSessionRepository.java b/src/main/java/love/sola/netsupport/session/MapSessionRepository.java index 37b3284..87b7cf8 100644 --- a/src/main/java/love/sola/netsupport/session/MapSessionRepository.java +++ b/src/main/java/love/sola/netsupport/session/MapSessionRepository.java @@ -26,7 +26,7 @@ import java.util.Map; import java.util.concurrent.TimeUnit; /** - * @author Sola + * @author Sola {@literal } */ public class MapSessionRepository { diff --git a/src/main/java/love/sola/netsupport/session/WechatSession.java b/src/main/java/love/sola/netsupport/session/WechatSession.java index d731838..6d99efb 100644 --- a/src/main/java/love/sola/netsupport/session/WechatSession.java +++ b/src/main/java/love/sola/netsupport/session/WechatSession.java @@ -4,10 +4,7 @@ package love.sola.netsupport.session; import java.util.Collection; /** - * *********************************************** - * Created by Sola on 2015/12/14. - * Don't modify this source without my agreement - * *********************************************** + * @author Sola {@literal } */ public class WechatSession { diff --git a/src/main/java/love/sola/netsupport/session/WxSession.java b/src/main/java/love/sola/netsupport/session/WxSession.java index d7dd4a9..70736de 100644 --- a/src/main/java/love/sola/netsupport/session/WxSession.java +++ b/src/main/java/love/sola/netsupport/session/WxSession.java @@ -3,7 +3,7 @@ package love.sola.netsupport.session; import java.util.Set; /** - * @author Sola + * @author Sola {@literal } */ public interface WxSession { diff --git a/src/main/java/love/sola/netsupport/sql/SQLCore.java b/src/main/java/love/sola/netsupport/sql/SQLCore.java index 5d7b0c1..c00af34 100644 --- a/src/main/java/love/sola/netsupport/sql/SQLCore.java +++ b/src/main/java/love/sola/netsupport/sql/SQLCore.java @@ -25,10 +25,7 @@ import java.io.IOException; import java.util.Date; /** - * *********************************************** - * Created by Sola on 2014/8/20. - * Don't modify this source without my agreement - * *********************************************** + * @author Sola {@literal } */ public class SQLCore { diff --git a/src/main/java/love/sola/netsupport/sql/TableConfig.java b/src/main/java/love/sola/netsupport/sql/TableConfig.java index bc4d6ff..713f3a1 100644 --- a/src/main/java/love/sola/netsupport/sql/TableConfig.java +++ b/src/main/java/love/sola/netsupport/sql/TableConfig.java @@ -5,10 +5,7 @@ import love.sola.netsupport.config.Settings; import java.sql.*; /** - * *********************************************** - * Created by Sola on 2015/11/10. - * Don't modify this source without my agreement - * *********************************************** + * @author Sola {@literal } */ public class TableConfig extends SQLCore{ diff --git a/src/main/java/love/sola/netsupport/sql/TableOperator.java b/src/main/java/love/sola/netsupport/sql/TableOperator.java index 90b6737..b74257d 100644 --- a/src/main/java/love/sola/netsupport/sql/TableOperator.java +++ b/src/main/java/love/sola/netsupport/sql/TableOperator.java @@ -6,10 +6,7 @@ import org.hibernate.criterion.Projections; import org.hibernate.criterion.Restrictions; /** - * *********************************************** - * Created by Sola on 2015/12/12. - * Don't modify this source without my agreement - * *********************************************** + * @author Sola {@literal } */ public class TableOperator extends SQLCore { diff --git a/src/main/java/love/sola/netsupport/sql/TableTicket.java b/src/main/java/love/sola/netsupport/sql/TableTicket.java index 0eccfa1..02cf1a7 100644 --- a/src/main/java/love/sola/netsupport/sql/TableTicket.java +++ b/src/main/java/love/sola/netsupport/sql/TableTicket.java @@ -13,10 +13,7 @@ import org.hibernate.envers.query.AuditEntity; import java.util.List; /** - * *********************************************** - * Created by Sola on 2015/12/6. - * Don't modify this source without my agreement - * *********************************************** + * @author Sola {@literal } */ public class TableTicket extends SQLCore { diff --git a/src/main/java/love/sola/netsupport/sql/TableUser.java b/src/main/java/love/sola/netsupport/sql/TableUser.java index b6658bc..7218d0b 100644 --- a/src/main/java/love/sola/netsupport/sql/TableUser.java +++ b/src/main/java/love/sola/netsupport/sql/TableUser.java @@ -12,10 +12,7 @@ import java.util.concurrent.ExecutionException; import java.util.concurrent.TimeUnit; /** - * *********************************************** - * Created by Sola on 2015/11/10. - * Don't modify this source without my agreement - * *********************************************** + * @author Sola {@literal } */ @SuppressWarnings("Duplicates") public class TableUser extends SQLCore { diff --git a/src/main/java/love/sola/netsupport/util/Checker.java b/src/main/java/love/sola/netsupport/util/Checker.java index 57cbe11..909d386 100644 --- a/src/main/java/love/sola/netsupport/util/Checker.java +++ b/src/main/java/love/sola/netsupport/util/Checker.java @@ -4,10 +4,7 @@ import love.sola.netsupport.enums.Block; import love.sola.netsupport.enums.ISP; /** - * *********************************************** - * Created by Sola on 2015/12/12. - * Don't modify this source without my agreement - * *********************************************** + * @author Sola {@literal } */ public class Checker { diff --git a/src/main/java/love/sola/netsupport/util/Crypto.java b/src/main/java/love/sola/netsupport/util/Crypto.java index 636de95..8aaf5ec 100644 --- a/src/main/java/love/sola/netsupport/util/Crypto.java +++ b/src/main/java/love/sola/netsupport/util/Crypto.java @@ -3,10 +3,7 @@ package love.sola.netsupport.util; import org.mindrot.jbcrypt.BCrypt; /** - * *********************************************** - * Created by Sola on 2015/12/6. - * Don't modify this source without my agreement - * *********************************************** + * @author Sola {@literal } */ public class Crypto { diff --git a/src/main/java/love/sola/netsupport/util/ParseUtil.java b/src/main/java/love/sola/netsupport/util/ParseUtil.java index ea55adb..2ac3b51 100644 --- a/src/main/java/love/sola/netsupport/util/ParseUtil.java +++ b/src/main/java/love/sola/netsupport/util/ParseUtil.java @@ -8,10 +8,7 @@ import java.text.SimpleDateFormat; import static love.sola.netsupport.config.Lang.lang; /** - * *********************************************** - * Created by Sola on 2015/12/11. - * Don't modify this source without my agreement - * *********************************************** + * @author Sola {@literal } */ public class ParseUtil { diff --git a/src/main/java/love/sola/netsupport/util/RSAUtil.java b/src/main/java/love/sola/netsupport/util/RSAUtil.java index 25ce40b..7b408d7 100644 --- a/src/main/java/love/sola/netsupport/util/RSAUtil.java +++ b/src/main/java/love/sola/netsupport/util/RSAUtil.java @@ -8,6 +8,9 @@ import java.security.Key; import java.security.KeyPair; import java.security.KeyPairGenerator; +/** + * @author Sola {@literal } + */ public class RSAUtil { diff --git a/src/main/java/love/sola/netsupport/util/Redirect.java b/src/main/java/love/sola/netsupport/util/Redirect.java index cb90b39..fedd908 100644 --- a/src/main/java/love/sola/netsupport/util/Redirect.java +++ b/src/main/java/love/sola/netsupport/util/Redirect.java @@ -8,10 +8,7 @@ import java.io.IOException; import static love.sola.netsupport.config.Lang.lang; /** - * *********************************************** - * Created by Sola on 2015/12/6. - * Don't modify this source without my agreement - * *********************************************** + * @author Sola {@literal } */ public class Redirect { diff --git a/src/main/java/love/sola/netsupport/wechat/Command.java b/src/main/java/love/sola/netsupport/wechat/Command.java index 6787759..92b8c86 100644 --- a/src/main/java/love/sola/netsupport/wechat/Command.java +++ b/src/main/java/love/sola/netsupport/wechat/Command.java @@ -11,10 +11,7 @@ import java.util.Map; import static love.sola.netsupport.config.Lang.lang; /** - * *********************************************** - * Created by Sola on 2015/11/26. - * Don't modify this source without my agreement - * *********************************************** + * @author Sola {@literal } */ public enum Command { diff --git a/src/main/java/love/sola/netsupport/wechat/WxMpServlet.java b/src/main/java/love/sola/netsupport/wechat/WxMpServlet.java index 7ee688b..4151734 100644 --- a/src/main/java/love/sola/netsupport/wechat/WxMpServlet.java +++ b/src/main/java/love/sola/netsupport/wechat/WxMpServlet.java @@ -24,10 +24,7 @@ import java.io.IOException; import static love.sola.netsupport.config.Lang.lang; /** - * *********************************************** - * Created by Sola on 2015/11/2. - * Don't modify this source without my agreement - * *********************************************** + * @author Sola {@literal } */ @WebServlet(name = "WxMpServlet", urlPatterns = "/wechat", loadOnStartup = 99) public class WxMpServlet extends HttpServlet { diff --git a/src/main/java/love/sola/netsupport/wechat/handler/AutoReplyHandler.java b/src/main/java/love/sola/netsupport/wechat/handler/AutoReplyHandler.java index f147997..dc9273b 100644 --- a/src/main/java/love/sola/netsupport/wechat/handler/AutoReplyHandler.java +++ b/src/main/java/love/sola/netsupport/wechat/handler/AutoReplyHandler.java @@ -10,10 +10,7 @@ import me.chanjar.weixin.mp.bean.WxMpXmlOutMessage; import java.util.Map; /** - * *********************************************** - * Created by Sola on 2015/12/29. - * Don't modify this source without my agreement - * *********************************************** + * @author Sola {@literal } */ public class AutoReplyHandler implements WxMpMessageHandler { diff --git a/src/main/java/love/sola/netsupport/wechat/handler/CancelHandler.java b/src/main/java/love/sola/netsupport/wechat/handler/CancelHandler.java index 38680c6..0138727 100644 --- a/src/main/java/love/sola/netsupport/wechat/handler/CancelHandler.java +++ b/src/main/java/love/sola/netsupport/wechat/handler/CancelHandler.java @@ -24,10 +24,7 @@ import java.util.Map; import static love.sola.netsupport.config.Lang.lang; /** - * *********************************************** - * Created by Sola on 2015/12/11. - * Don't modify this source without my agreement - * *********************************************** + * @author Sola {@literal } */ public class CancelHandler implements WxMpMessageHandler { diff --git a/src/main/java/love/sola/netsupport/wechat/handler/ProfileHandler.java b/src/main/java/love/sola/netsupport/wechat/handler/ProfileHandler.java index a051791..92ea090 100644 --- a/src/main/java/love/sola/netsupport/wechat/handler/ProfileHandler.java +++ b/src/main/java/love/sola/netsupport/wechat/handler/ProfileHandler.java @@ -24,10 +24,7 @@ import static love.sola.netsupport.config.Lang.format; import static love.sola.netsupport.config.Lang.lang; /** - * *********************************************** - * Created by Sola on 2015/12/15. - * Don't modify this source without my agreement - * *********************************************** + * @author Sola {@literal } */ public class ProfileHandler implements WxMpMessageHandler, OAuth2Handler { diff --git a/src/main/java/love/sola/netsupport/wechat/handler/QueryHandler.java b/src/main/java/love/sola/netsupport/wechat/handler/QueryHandler.java index f868461..3d4cfca 100644 --- a/src/main/java/love/sola/netsupport/wechat/handler/QueryHandler.java +++ b/src/main/java/love/sola/netsupport/wechat/handler/QueryHandler.java @@ -24,10 +24,7 @@ import static love.sola.netsupport.config.Lang.format; import static love.sola.netsupport.config.Lang.lang; /** - * *********************************************** - * Created by Sola on 2015/12/8. - * Don't modify this source without my agreement - * *********************************************** + * @author Sola {@literal } */ public class QueryHandler implements WxMpMessageHandler { diff --git a/src/main/java/love/sola/netsupport/wechat/handler/RegisterHandler.java b/src/main/java/love/sola/netsupport/wechat/handler/RegisterHandler.java index 7bce4db..52e8110 100644 --- a/src/main/java/love/sola/netsupport/wechat/handler/RegisterHandler.java +++ b/src/main/java/love/sola/netsupport/wechat/handler/RegisterHandler.java @@ -19,10 +19,7 @@ import java.util.Map; import static love.sola.netsupport.config.Lang.format; /** - * *********************************************** - * Created by Sola on 2015/11/4. - * Don't modify this source without my agreement - * *********************************************** + * @author Sola {@literal } */ public class RegisterHandler implements WxMpMessageHandler { diff --git a/src/main/java/love/sola/netsupport/wechat/handler/SubmitHandler.java b/src/main/java/love/sola/netsupport/wechat/handler/SubmitHandler.java index 09c71ec..aa3c4eb 100644 --- a/src/main/java/love/sola/netsupport/wechat/handler/SubmitHandler.java +++ b/src/main/java/love/sola/netsupport/wechat/handler/SubmitHandler.java @@ -22,10 +22,7 @@ import static love.sola.netsupport.config.Lang.format; import static love.sola.netsupport.config.Lang.lang; /** - * *********************************************** - * Created by Sola on 2015/12/9. - * Don't modify this source without my agreement - * *********************************************** + * @author Sola {@literal } */ public class SubmitHandler implements WxMpMessageHandler { diff --git a/src/main/java/love/sola/netsupport/wechat/handler/SubscribeHandler.java b/src/main/java/love/sola/netsupport/wechat/handler/SubscribeHandler.java index 962060a..0a89888 100644 --- a/src/main/java/love/sola/netsupport/wechat/handler/SubscribeHandler.java +++ b/src/main/java/love/sola/netsupport/wechat/handler/SubscribeHandler.java @@ -22,10 +22,7 @@ import java.util.Map; import static love.sola.netsupport.config.Lang.format; /** - * *********************************************** - * Created by Sola on 2015/12/25. - * Don't modify this source without my agreement - * *********************************************** + * @author Sola {@literal } */ public class SubscribeHandler implements WxMpMessageHandler { diff --git a/src/main/java/love/sola/netsupport/wechat/handler/admin/LoginHandler.java b/src/main/java/love/sola/netsupport/wechat/handler/admin/LoginHandler.java index 7ee38ab..a6cdf91 100644 --- a/src/main/java/love/sola/netsupport/wechat/handler/admin/LoginHandler.java +++ b/src/main/java/love/sola/netsupport/wechat/handler/admin/LoginHandler.java @@ -25,10 +25,7 @@ import static love.sola.netsupport.config.Lang.format; import static love.sola.netsupport.config.Lang.lang; /** - * *********************************************** - * Created by Sola on 2015/12/12. - * Don't modify this source without my agreement - * *********************************************** + * @author Sola {@literal } */ public class LoginHandler implements WxMpMessageHandler, OAuth2Handler { diff --git a/src/main/java/love/sola/netsupport/wechat/handler/admin/OperatorInfoHandler.java b/src/main/java/love/sola/netsupport/wechat/handler/admin/OperatorInfoHandler.java index 38bfaa7..49c1318 100644 --- a/src/main/java/love/sola/netsupport/wechat/handler/admin/OperatorInfoHandler.java +++ b/src/main/java/love/sola/netsupport/wechat/handler/admin/OperatorInfoHandler.java @@ -16,10 +16,7 @@ import static love.sola.netsupport.config.Lang.format; import static love.sola.netsupport.config.Lang.lang; /** - * *********************************************** - * Created by Sola on 2015/12/28. - * Don't modify this source without my agreement - * *********************************************** + * @author Sola {@literal } */ public class OperatorInfoHandler implements WxMpMessageHandler { diff --git a/src/main/java/love/sola/netsupport/wechat/handler/admin/SignHandler.java b/src/main/java/love/sola/netsupport/wechat/handler/admin/SignHandler.java index 47e8a8e..f887735 100644 --- a/src/main/java/love/sola/netsupport/wechat/handler/admin/SignHandler.java +++ b/src/main/java/love/sola/netsupport/wechat/handler/admin/SignHandler.java @@ -18,10 +18,7 @@ import java.util.regex.Matcher; import java.util.regex.Pattern; /** - * *********************************************** - * Created by Sola on 2015/12/26. - * Don't modify this source without my agreement - * *********************************************** + * @author Sola {@literal } */ public class SignHandler implements WxMpMessageHandler { diff --git a/src/main/java/love/sola/netsupport/wechat/matcher/CheckSpamMatcher.java b/src/main/java/love/sola/netsupport/wechat/matcher/CheckSpamMatcher.java index 98f5bad..1155b61 100644 --- a/src/main/java/love/sola/netsupport/wechat/matcher/CheckSpamMatcher.java +++ b/src/main/java/love/sola/netsupport/wechat/matcher/CheckSpamMatcher.java @@ -10,10 +10,7 @@ import me.chanjar.weixin.mp.bean.WxMpXmlMessage; import java.util.concurrent.TimeUnit; /** - * *********************************************** - * Created by Sola on 2015/11/4. - * Don't modify this source without my agreement - * *********************************************** + * @author Sola {@literal } */ public class CheckSpamMatcher implements WxMpMessageMatcher { diff --git a/src/main/java/love/sola/netsupport/wechat/matcher/CommandMatcher.java b/src/main/java/love/sola/netsupport/wechat/matcher/CommandMatcher.java index 1c563ce..a7763ef 100644 --- a/src/main/java/love/sola/netsupport/wechat/matcher/CommandMatcher.java +++ b/src/main/java/love/sola/netsupport/wechat/matcher/CommandMatcher.java @@ -8,10 +8,7 @@ import java.util.Map; import java.util.concurrent.ConcurrentHashMap; /** - * *********************************************** - * Created by Sola on 2015/11/26. - * Don't modify this source without my agreement - * *********************************************** + * @author Sola {@literal } */ public class CommandMatcher implements WxMpMessageMatcher { diff --git a/src/main/java/love/sola/netsupport/wechat/matcher/RegisterMatcher.java b/src/main/java/love/sola/netsupport/wechat/matcher/RegisterMatcher.java index eef8974..12ef134 100644 --- a/src/main/java/love/sola/netsupport/wechat/matcher/RegisterMatcher.java +++ b/src/main/java/love/sola/netsupport/wechat/matcher/RegisterMatcher.java @@ -5,10 +5,7 @@ import me.chanjar.weixin.mp.api.WxMpMessageMatcher; import me.chanjar.weixin.mp.bean.WxMpXmlMessage; /** - * *********************************************** - * Created by Sola on 2015/11/26. - * Don't modify this source without my agreement - * *********************************************** + * @author Sola {@literal } */ public class RegisterMatcher implements WxMpMessageMatcher { diff --git a/src/test/java/love/sola/netsupport/api/ReflectionTest.java b/src/test/java/love/sola/netsupport/api/ReflectionTest.java index edcaac2..f8e2f66 100644 --- a/src/test/java/love/sola/netsupport/api/ReflectionTest.java +++ b/src/test/java/love/sola/netsupport/api/ReflectionTest.java @@ -6,10 +6,7 @@ import org.reflections.Reflections; import java.util.Set; /** - * *********************************************** - * Created by Sola on 2016/3/26. - * Don't modify this source without my agreement - * *********************************************** + * @author Sola {@literal } */ public class ReflectionTest { diff --git a/src/test/java/love/sola/netsupport/config/CortanaTest.java b/src/test/java/love/sola/netsupport/config/CortanaTest.java index 0809f48..00e3cc0 100644 --- a/src/test/java/love/sola/netsupport/config/CortanaTest.java +++ b/src/test/java/love/sola/netsupport/config/CortanaTest.java @@ -3,10 +3,7 @@ package love.sola.netsupport.config; import org.junit.Test; /** - * *********************************************** - * Created by Sola on 2016/4/18. - * Don't modify this source without my agreement - * *********************************************** + * @author Sola {@literal } */ public class CortanaTest { diff --git a/src/test/java/love/sola/netsupport/config/ReflectionTest.java b/src/test/java/love/sola/netsupport/config/ReflectionTest.java index 1d6fb5f..da71813 100644 --- a/src/test/java/love/sola/netsupport/config/ReflectionTest.java +++ b/src/test/java/love/sola/netsupport/config/ReflectionTest.java @@ -3,10 +3,7 @@ package love.sola.netsupport.config; import org.junit.Test; /** - * *********************************************** - * Created by Sola on 2016/3/26. - * Don't modify this source without my agreement - * *********************************************** + * @author Sola {@literal } */ public class ReflectionTest { diff --git a/src/test/java/love/sola/netsupport/enums/ReflectionTest.java b/src/test/java/love/sola/netsupport/enums/ReflectionTest.java index 323c97d..2bd65d5 100644 --- a/src/test/java/love/sola/netsupport/enums/ReflectionTest.java +++ b/src/test/java/love/sola/netsupport/enums/ReflectionTest.java @@ -3,10 +3,7 @@ package love.sola.netsupport.enums; import org.junit.Test; /** - * *********************************************** - * Created by Sola on 2015/12/6. - * Don't modify this source without my agreement - * *********************************************** + * @author Sola {@literal } */ public class ReflectionTest { diff --git a/src/test/java/love/sola/netsupport/util/EncryptTest.java b/src/test/java/love/sola/netsupport/util/EncryptTest.java index af83d42..489fe11 100644 --- a/src/test/java/love/sola/netsupport/util/EncryptTest.java +++ b/src/test/java/love/sola/netsupport/util/EncryptTest.java @@ -10,10 +10,7 @@ import java.security.spec.InvalidKeySpecException; import java.security.spec.X509EncodedKeySpec; /** - * *********************************************** - * Created by Sola on 2015/12/6. - * Don't modify this source without my agreement - * *********************************************** + * @author Sola {@literal } */ public class EncryptTest { diff --git a/src/test/java/love/sola/netsupport/util/GsonTest.java b/src/test/java/love/sola/netsupport/util/GsonTest.java index e6f7a3f..f386656 100644 --- a/src/test/java/love/sola/netsupport/util/GsonTest.java +++ b/src/test/java/love/sola/netsupport/util/GsonTest.java @@ -7,10 +7,7 @@ import org.junit.Test; import java.util.Date; /** - * *********************************************** - * Created by Sola on 2015/12/2. - * Don't modify this source without my agreement - * *********************************************** + * @author Sola {@literal } */ public class GsonTest { diff --git a/src/test/java/love/sola/netsupport/util/URLEncodeTest.java b/src/test/java/love/sola/netsupport/util/URLEncodeTest.java index 69b1423..852b53b 100644 --- a/src/test/java/love/sola/netsupport/util/URLEncodeTest.java +++ b/src/test/java/love/sola/netsupport/util/URLEncodeTest.java @@ -9,10 +9,7 @@ import static org.hamcrest.CoreMatchers.equalTo; import static org.junit.Assert.assertThat; /** - * *********************************************** - * Created by Sola on 2016/3/26. - * Don't modify this source without my agreement - * *********************************************** + * @author Sola {@literal } */ public class URLEncodeTest { From e834fdfb7bae08fd8482a5ef357a9be9d134bf8a Mon Sep 17 00:00:00 2001 From: Sola Date: Thu, 28 Apr 2016 20:51:00 +0800 Subject: [PATCH 5/7] should swallowOutput in production env. --- src/main/webapp/META-INF/context.xml | 53 ++++++++++++++-------------- 1 file changed, 27 insertions(+), 26 deletions(-) diff --git a/src/main/webapp/META-INF/context.xml b/src/main/webapp/META-INF/context.xml index d5ea7e8..2d166ea 100644 --- a/src/main/webapp/META-INF/context.xml +++ b/src/main/webapp/META-INF/context.xml @@ -16,33 +16,34 @@ limitations under the License. --> - + + - - WEB-INF/web.xml + + WEB-INF/web.xml - - - - - + + + + + \ No newline at end of file From b5ccd18a59b322bec07abddc86a91ac2be3462d8 Mon Sep 17 00:00:00 2001 From: Sola Date: Fri, 13 May 2016 11:11:13 +0800 Subject: [PATCH 6/7] polish --- src/main/java/love/sola/netsupport/Index.java | 2 +- .../love/sola/netsupport/auth/OAuth2.java | 3 +- .../love/sola/netsupport/config/Settings.java | 4 +- .../config/WxMpXmlInMemoryConfigStorage.java | 14 ++--- .../love/sola/netsupport/enums/Access.java | 2 +- .../love/sola/netsupport/enums/Block.java | 52 +++++++++---------- .../java/love/sola/netsupport/enums/ISP.java | 7 +-- .../love/sola/netsupport/enums/Status.java | 2 +- .../love/sola/netsupport/sql/TableConfig.java | 5 +- .../love/sola/netsupport/util/Checker.java | 12 +++-- .../love/sola/netsupport/util/ParseUtil.java | 6 ++- .../love/sola/netsupport/util/RSAUtil.java | 48 ++++++++--------- .../love/sola/netsupport/util/Redirect.java | 3 +- .../love/sola/netsupport/wechat/Command.java | 3 +- src/main/resources/hibernate.cfg.xml | 50 +++++++++--------- src/main/resources/wechat-config.xml | 8 +-- src/main/webapp/WEB-INF/web.xml | 28 +++++----- 17 files changed, 129 insertions(+), 120 deletions(-) diff --git a/src/main/java/love/sola/netsupport/Index.java b/src/main/java/love/sola/netsupport/Index.java index b6468e7..97bd548 100644 --- a/src/main/java/love/sola/netsupport/Index.java +++ b/src/main/java/love/sola/netsupport/Index.java @@ -11,7 +11,7 @@ import java.io.PrintWriter; /** * @author Sola {@literal } */ -@WebServlet(name = "Index",urlPatterns = "/index",loadOnStartup = 1) +@WebServlet(name = "Index", urlPatterns = "/index", loadOnStartup = 1) public class Index extends HttpServlet { protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { diff --git a/src/main/java/love/sola/netsupport/auth/OAuth2.java b/src/main/java/love/sola/netsupport/auth/OAuth2.java index 355da50..e9c3d2e 100644 --- a/src/main/java/love/sola/netsupport/auth/OAuth2.java +++ b/src/main/java/love/sola/netsupport/auth/OAuth2.java @@ -27,7 +27,8 @@ public class OAuth2 extends HttpServlet { /** * for {@link love.sola.netsupport.wechat.WxMpServlet#registerCommands} - * @param state the state key from open platform callback. + * + * @param state the state key from open platform callback. * @param handler handler */ public static void registerOAuth2Handler(String state, OAuth2Handler handler) { diff --git a/src/main/java/love/sola/netsupport/config/Settings.java b/src/main/java/love/sola/netsupport/config/Settings.java index 824862d..c44243d 100644 --- a/src/main/java/love/sola/netsupport/config/Settings.java +++ b/src/main/java/love/sola/netsupport/config/Settings.java @@ -32,6 +32,8 @@ public class Settings { public int User_Wechat_Cache_Expire_Time; //No arg constructor for Yaml.loadAs - public Settings() { I = this; } + public Settings() { + I = this; + } } diff --git a/src/main/java/love/sola/netsupport/config/WxMpXmlInMemoryConfigStorage.java b/src/main/java/love/sola/netsupport/config/WxMpXmlInMemoryConfigStorage.java index 66eea2d..9218e1b 100644 --- a/src/main/java/love/sola/netsupport/config/WxMpXmlInMemoryConfigStorage.java +++ b/src/main/java/love/sola/netsupport/config/WxMpXmlInMemoryConfigStorage.java @@ -15,12 +15,12 @@ import java.io.InputStream; @ToString public class WxMpXmlInMemoryConfigStorage extends WxMpInMemoryConfigStorage { - @SuppressWarnings("unchecked") - public static T fromXml(Class clazz, InputStream is) { - XStream xstream = XStreamInitializer.getInstance(); - xstream.alias("wechat-config", clazz); - xstream.processAnnotations(clazz); - return (T) xstream.fromXML(is); - } + @SuppressWarnings("unchecked") + public static T fromXml(Class clazz, InputStream is) { + XStream xstream = XStreamInitializer.getInstance(); + xstream.alias("wechat-config", clazz); + xstream.processAnnotations(clazz); + return (T) xstream.fromXML(is); + } } diff --git a/src/main/java/love/sola/netsupport/enums/Access.java b/src/main/java/love/sola/netsupport/enums/Access.java index ff78f80..2c4b3e4 100644 --- a/src/main/java/love/sola/netsupport/enums/Access.java +++ b/src/main/java/love/sola/netsupport/enums/Access.java @@ -27,7 +27,7 @@ public class Access { public static final Map inverseMap = new HashMap<>(); - static{ + static { System.out.println("Loading Access..."); for (Field field : Access.class.getDeclaredFields()) { if (field.getType().isAssignableFrom(Integer.TYPE)) { diff --git a/src/main/java/love/sola/netsupport/enums/Block.java b/src/main/java/love/sola/netsupport/enums/Block.java index dd136ff..a0ca63c 100644 --- a/src/main/java/love/sola/netsupport/enums/Block.java +++ b/src/main/java/love/sola/netsupport/enums/Block.java @@ -37,7 +37,7 @@ public class Block { public static final Map inverseMap = new HashMap<>(); - static{ + static { System.out.println("Loading Blocks..."); for (Field field : Block.class.getDeclaredFields()) { if (field.getType().isAssignableFrom(Integer.TYPE)) { @@ -56,31 +56,31 @@ public class Block { // -------------------------------------------- // // THANKS DATA PROVIDED BY Lai Juncheng // -------------------------------------------- // - AVAILABLE[FX_1] = new int[]{108, 208, 308, 408, 508}; - AVAILABLE[FX_2] = new int[]{110, 210, 310, 410, 510, 610}; - AVAILABLE[FX_3] = new int[]{110, 210, 310, 410, 510, 610}; - AVAILABLE[FX_4] = new int[]{110, 210, 310, 410, 510, 610, 710}; - AVAILABLE[FX_5] = new int[]{108, 208, 308, 408, 508, 608, 708}; - AVAILABLE[BM_7] = new int[]{100, 216, 317, 417, 517, 617, 717}; - AVAILABLE[BM_8] = new int[]{100, 221, 321, 421, 521, 621, 721}; - AVAILABLE[BM_9] = new int[]{100, 221, 321, 421, 521, 621}; - AVAILABLE[BM_10] = new int[]{111, 239, 354, 454, 564, 664, 764, 864}; - AVAILABLE[BM_11] = new int[]{100, 213, 321, 421, 521, 621, 721, 821}; - AVAILABLE[DM_12] = new int[]{119, 221, 321, 421, 521, 621, 720}; - AVAILABLE[DM_13] = new int[]{120, 222, 322, 422, 522, 622, 722}; - AVAILABLE[DM_14] = new int[]{100, 230, 330, 430, 530, 630, 730}; - AVAILABLE[DM_15] = new int[]{119, 219, 319, 419, 519, 619}; - AVAILABLE[QT_16] = new int[]{154, 257, 357, 457, 557, 657, 757}; - AVAILABLE[QT_17] = new int[]{154, 257, 357, 457, 557, 657, 757}; - AVAILABLE[QT_18] = new int[]{139, 239, 339, 439, 539, 639, 739}; - AVAILABLE[QT_19] = new int[]{100, 200, 332, 432, 532, 632, 732}; - AVAILABLE[DM_20] = new int[]{109, 209, 309, 409, 509, 609, 709}; - AVAILABLE[DM_21] = new int[]{109, 209, 309, 409, 509, 609, 709}; - AVAILABLE[XH_A] = new int[]{129, 231, 331, 431, 531, 631, 731, 831, 931, 1031, 1131, 1231}; - AVAILABLE[XH_B] = new int[]{129, 229, 329, 429, 529, 629, 729, 829, 929, 1029, 1129, 1229}; - AVAILABLE[XH_C] = new int[]{126, 226, 326, 426, 526, 626, 726, 826, 926, 1026, 1126, 1226}; - AVAILABLE[XH_D] = new int[]{128, 228, 328, 428, 528, 628, 728, 828, 928, 1028, 1128, 1228}; - AVAILABLE[FX_6] = new int[0]; + AVAILABLE[FX_1] = new int[]{108, 208, 308, 408, 508}; + AVAILABLE[FX_2] = new int[]{110, 210, 310, 410, 510, 610}; + AVAILABLE[FX_3] = new int[]{110, 210, 310, 410, 510, 610}; + AVAILABLE[FX_4] = new int[]{110, 210, 310, 410, 510, 610, 710}; + AVAILABLE[FX_5] = new int[]{108, 208, 308, 408, 508, 608, 708}; + AVAILABLE[BM_7] = new int[]{100, 216, 317, 417, 517, 617, 717}; + AVAILABLE[BM_8] = new int[]{100, 221, 321, 421, 521, 621, 721}; + AVAILABLE[BM_9] = new int[]{100, 221, 321, 421, 521, 621}; + AVAILABLE[BM_10] = new int[]{111, 239, 354, 454, 564, 664, 764, 864}; + AVAILABLE[BM_11] = new int[]{100, 213, 321, 421, 521, 621, 721, 821}; + AVAILABLE[DM_12] = new int[]{119, 221, 321, 421, 521, 621, 720}; + AVAILABLE[DM_13] = new int[]{120, 222, 322, 422, 522, 622, 722}; + AVAILABLE[DM_14] = new int[]{100, 230, 330, 430, 530, 630, 730}; + AVAILABLE[DM_15] = new int[]{119, 219, 319, 419, 519, 619}; + AVAILABLE[QT_16] = new int[]{154, 257, 357, 457, 557, 657, 757}; + AVAILABLE[QT_17] = new int[]{154, 257, 357, 457, 557, 657, 757}; + AVAILABLE[QT_18] = new int[]{139, 239, 339, 439, 539, 639, 739}; + AVAILABLE[QT_19] = new int[]{100, 200, 332, 432, 532, 632, 732}; + AVAILABLE[DM_20] = new int[]{109, 209, 309, 409, 509, 609, 709}; + AVAILABLE[DM_21] = new int[]{109, 209, 309, 409, 509, 609, 709}; + AVAILABLE[XH_A] = new int[]{129, 231, 331, 431, 531, 631, 731, 831, 931, 1031, 1131, 1231}; + AVAILABLE[XH_B] = new int[]{129, 229, 329, 429, 529, 629, 729, 829, 929, 1029, 1129, 1229}; + AVAILABLE[XH_C] = new int[]{126, 226, 326, 426, 526, 626, 726, 826, 926, 1026, 1126, 1226}; + AVAILABLE[XH_D] = new int[]{128, 228, 328, 428, 528, 628, 728, 828, 928, 1028, 1128, 1228}; + AVAILABLE[FX_6] = new int[0]; } public static boolean checkRoom(int block, int room) { diff --git a/src/main/java/love/sola/netsupport/enums/ISP.java b/src/main/java/love/sola/netsupport/enums/ISP.java index abc47a7..61d1d80 100644 --- a/src/main/java/love/sola/netsupport/enums/ISP.java +++ b/src/main/java/love/sola/netsupport/enums/ISP.java @@ -13,8 +13,7 @@ public enum ISP { TELECOM(1, "^1[3|4|5|7|8][0-9]{9}$"), UNICOM(2, "ZSZJLAN[0-9]{10}@16900\\.gd"), CHINAMOBILE(3, "^1[3|4|5|7|8][0-9]{9}@139\\.gd$"), - OTHER(4, ".*"), - ; + OTHER(4, ".*"),; private static final Map NAME_MAP = new HashMap<>(); private static final Map ID_MAP = new HashMap<>(); @@ -52,6 +51,8 @@ public enum ISP { } @Override - public String toString() { return name; } + public String toString() { + return name; + } } diff --git a/src/main/java/love/sola/netsupport/enums/Status.java b/src/main/java/love/sola/netsupport/enums/Status.java index ae602b1..37de042 100644 --- a/src/main/java/love/sola/netsupport/enums/Status.java +++ b/src/main/java/love/sola/netsupport/enums/Status.java @@ -20,7 +20,7 @@ public class Status { public static final Map inverseMap = new HashMap<>(); - static{ + static { System.out.println("Loading Status..."); for (Field field : Status.class.getDeclaredFields()) { if (field.getType().isAssignableFrom(Integer.TYPE)) { diff --git a/src/main/java/love/sola/netsupport/sql/TableConfig.java b/src/main/java/love/sola/netsupport/sql/TableConfig.java index 713f3a1..9c752ca 100644 --- a/src/main/java/love/sola/netsupport/sql/TableConfig.java +++ b/src/main/java/love/sola/netsupport/sql/TableConfig.java @@ -7,7 +7,7 @@ import java.sql.*; /** * @author Sola {@literal } */ -public class TableConfig extends SQLCore{ +public class TableConfig extends SQLCore { public static final String KEY_SYS = "sys"; @@ -18,7 +18,8 @@ public class TableConfig extends SQLCore{ if (rs.next()) { return gson.fromJson(rs.getString("data"), Settings.class); } - } catch (SQLException e) { } + } catch (SQLException e) { + } return null; } diff --git a/src/main/java/love/sola/netsupport/util/Checker.java b/src/main/java/love/sola/netsupport/util/Checker.java index 909d386..a579082 100644 --- a/src/main/java/love/sola/netsupport/util/Checker.java +++ b/src/main/java/love/sola/netsupport/util/Checker.java @@ -32,7 +32,8 @@ public class Checker { if (!phone.matches(PHONE_NUMBER_REGEX)) return -1; try { return Long.parseLong(phone); - } catch (NumberFormatException ignored) { } + } catch (NumberFormatException ignored) { + } return -1; } @@ -40,7 +41,8 @@ public class Checker { if (isp == null) return null; try { return ISP.fromId(Integer.parseInt(isp)); - } catch (NumberFormatException ignored) { } + } catch (NumberFormatException ignored) { + } return null; } @@ -59,7 +61,8 @@ public class Checker { return b; else return -1; - } catch (NumberFormatException ignored) { } + } catch (NumberFormatException ignored) { + } return -1; } @@ -72,7 +75,8 @@ public class Checker { return i; else return -1; - } catch (NumberFormatException ignored) { } + } catch (NumberFormatException ignored) { + } return -1; } diff --git a/src/main/java/love/sola/netsupport/util/ParseUtil.java b/src/main/java/love/sola/netsupport/util/ParseUtil.java index 2ac3b51..ff96ab8 100644 --- a/src/main/java/love/sola/netsupport/util/ParseUtil.java +++ b/src/main/java/love/sola/netsupport/util/ParseUtil.java @@ -19,9 +19,11 @@ public class ParseUtil { .append(lang("Ticket_Info_Id")).append(t.getId()).append("\n") .append(lang("Ticket_Info_Desc")).append(t.getDescription()).append("\n") .append(lang("Ticket_Info_Submit_Time")).append(dateFormat.format(t.getSubmitTime())).append("\n"); - if (t.getOperator() != null) sb.append(lang("Ticket_Info_Operator")).append(t.getOperator().getId()).append("\n"); + if (t.getOperator() != null) + sb.append(lang("Ticket_Info_Operator")).append(t.getOperator().getId()).append("\n"); if (t.getRemark() != null) sb.append(lang("Ticket_Info_Remark")).append(t.getRemark()).append("\n"); - if (t.getUpdateTime() != null) sb.append(lang("Ticket_Info_Update_Time")).append(dateFormat.format(t.getUpdateTime())).append("\n"); + if (t.getUpdateTime() != null) + sb.append(lang("Ticket_Info_Update_Time")).append(dateFormat.format(t.getUpdateTime())).append("\n"); sb.append(lang("Ticket_Info_Status")).append(Status.getLocalized(t.getStatus())); return sb.toString(); } diff --git a/src/main/java/love/sola/netsupport/util/RSAUtil.java b/src/main/java/love/sola/netsupport/util/RSAUtil.java index 7b408d7..3ef996c 100644 --- a/src/main/java/love/sola/netsupport/util/RSAUtil.java +++ b/src/main/java/love/sola/netsupport/util/RSAUtil.java @@ -19,9 +19,9 @@ public class RSAUtil { public static String publicKey_s; public static String privateKey_s; - static { - genKeyPair(); - } + static { + genKeyPair(); + } public static void genKeyPair() { try { @@ -38,27 +38,27 @@ public class RSAUtil { } public static String encrypt(String value) { - try { - Cipher cipher = Cipher.getInstance("RSA"); - cipher.init(Cipher.ENCRYPT_MODE, publicKey); - byte[] encrypted = cipher.doFinal(value.getBytes(StandardCharsets.UTF_8)); - return Base64.encodeBase64String(encrypted); - } catch (Exception ex) { - ex.printStackTrace(); - } - return null; - } + try { + Cipher cipher = Cipher.getInstance("RSA"); + cipher.init(Cipher.ENCRYPT_MODE, publicKey); + byte[] encrypted = cipher.doFinal(value.getBytes(StandardCharsets.UTF_8)); + return Base64.encodeBase64String(encrypted); + } catch (Exception ex) { + ex.printStackTrace(); + } + return null; + } - public static String decrypt(String encrypted) { - try { - Cipher cipher = Cipher.getInstance("RSA"); - cipher.init(Cipher.DECRYPT_MODE, privateKey); - byte[] original = cipher.doFinal(Base64.decodeBase64(encrypted)); - return new String(original, StandardCharsets.UTF_8); - } catch (Exception ex) { - ex.printStackTrace(); - } - return null; - } + public static String decrypt(String encrypted) { + try { + Cipher cipher = Cipher.getInstance("RSA"); + cipher.init(Cipher.DECRYPT_MODE, privateKey); + byte[] original = cipher.doFinal(Base64.decodeBase64(encrypted)); + return new String(original, StandardCharsets.UTF_8); + } catch (Exception ex) { + ex.printStackTrace(); + } + return null; + } } \ No newline at end of file diff --git a/src/main/java/love/sola/netsupport/util/Redirect.java b/src/main/java/love/sola/netsupport/util/Redirect.java index fedd908..f5c0aea 100644 --- a/src/main/java/love/sola/netsupport/util/Redirect.java +++ b/src/main/java/love/sola/netsupport/util/Redirect.java @@ -98,8 +98,7 @@ public class Redirect { WARN("weui_icon_warn"), WARN_SAFE("weui_icon_safe_warn"), DOWNLOAD("weui_icon_download"), - CANCEL("weui_icon_cancel"), - ; + CANCEL("weui_icon_cancel"),; private String value; diff --git a/src/main/java/love/sola/netsupport/wechat/Command.java b/src/main/java/love/sola/netsupport/wechat/Command.java index 92b8c86..7ca8078 100644 --- a/src/main/java/love/sola/netsupport/wechat/Command.java +++ b/src/main/java/love/sola/netsupport/wechat/Command.java @@ -21,8 +21,7 @@ public enum Command { CANCEL(3, CancelHandler.class), PROFILE(4, ProfileHandler.class), LOGIN(10, LoginHandler.class), - OPERATOR_INFO(11, OperatorInfoHandler.class), - ; + OPERATOR_INFO(11, OperatorInfoHandler.class),; private static final Map ID_MAP = new HashMap<>(); diff --git a/src/main/resources/hibernate.cfg.xml b/src/main/resources/hibernate.cfg.xml index 852ffb5..de389c1 100644 --- a/src/main/resources/hibernate.cfg.xml +++ b/src/main/resources/hibernate.cfg.xml @@ -6,41 +6,41 @@ ~ See the lgpl.txt file in the root directory or . --> + "-//Hibernate/Hibernate Configuration DTD 3.0//EN" + "http://www.hibernate.org/dtd/hibernate-configuration-3.0.dtd"> - + - - - java:comp/env/jdbc/netsupport - - - - + + + java:comp/env/jdbc/netsupport + + + + - - + + - - org.hibernate.dialect.MySQL5InnoDBDialect + + org.hibernate.dialect.MySQL5InnoDBDialect - - org.hibernate.cache.internal.NoCacheProvider + + org.hibernate.cache.internal.NoCacheProvider - - true + + true - - validate + + validate - - - - + + + + - + \ No newline at end of file diff --git a/src/main/resources/wechat-config.xml b/src/main/resources/wechat-config.xml index 78b8f7c..f0f9370 100644 --- a/src/main/resources/wechat-config.xml +++ b/src/main/resources/wechat-config.xml @@ -1,6 +1,6 @@ - **** - **** - **** - **** + **** + **** + **** + **** \ No newline at end of file diff --git a/src/main/webapp/WEB-INF/web.xml b/src/main/webapp/WEB-INF/web.xml index 8dc1b11..aad0a03 100644 --- a/src/main/webapp/WEB-INF/web.xml +++ b/src/main/webapp/WEB-INF/web.xml @@ -5,22 +5,22 @@ http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd" version="3.1"> - + - Network Support Application - - If you have any problem, please contact loli@sola.love . - + Network Support Application + + If you have any problem, please contact loli@sola.love . + - - index - - - /index - + + index + + + /index + - - 10 - + + 10 + \ No newline at end of file From 06d4d115d3b82a190884b6d77fc52cc521d131b2 Mon Sep 17 00:00:00 2001 From: Sola Date: Sat, 14 May 2016 13:36:09 +0800 Subject: [PATCH 7/7] update README, LICENSE --- LICENSE | 165 ++++++++++++++++++ README.md | 28 +++ src/main/java/love/sola/netsupport/Index.java | 17 ++ .../java/love/sola/netsupport/api/API.java | 17 ++ .../love/sola/netsupport/api/APIRouter.java | 17 ++ .../sola/netsupport/api/CheckSession.java | 17 ++ .../java/love/sola/netsupport/api/Error.java | 17 ++ .../java/love/sola/netsupport/api/Login.java | 17 ++ .../sola/netsupport/api/manager/GetUser.java | 17 ++ .../netsupport/api/manager/TicketPush.java | 17 ++ .../sola/netsupport/api/root/DashBoard.java | 17 ++ .../sola/netsupport/api/root/FlushCache.java | 17 ++ .../sola/netsupport/api/root/SetPassword.java | 17 ++ .../sola/netsupport/api/stuff/TicketLog.java | 17 ++ .../netsupport/api/stuff/TicketLookup.java | 17 ++ .../netsupport/api/stuff/TicketTrack.java | 17 ++ .../netsupport/api/stuff/TicketUpdate.java | 17 ++ .../netsupport/api/user/ProfileModify.java | 17 ++ .../sola/netsupport/api/user/Register.java | 17 ++ .../sola/netsupport/api/user/TicketQuery.java | 17 ++ .../netsupport/api/user/TicketSubmit.java | 17 ++ .../love/sola/netsupport/auth/OAuth2.java | 17 ++ .../sola/netsupport/auth/OAuth2Handler.java | 17 ++ .../love/sola/netsupport/config/Cortana.java | 17 ++ .../love/sola/netsupport/config/Lang.java | 17 ++ .../love/sola/netsupport/config/Settings.java | 17 ++ .../config/WxMpXmlInMemoryConfigStorage.java | 17 ++ .../love/sola/netsupport/enums/Access.java | 17 ++ .../love/sola/netsupport/enums/Attribute.java | 17 ++ .../love/sola/netsupport/enums/Block.java | 17 ++ .../java/love/sola/netsupport/enums/ISP.java | 17 ++ .../sola/netsupport/enums/ISPConverter.java | 17 ++ .../love/sola/netsupport/enums/Status.java | 17 ++ .../love/sola/netsupport/pojo/Operator.java | 17 ++ .../love/sola/netsupport/pojo/Ticket.java | 17 ++ .../java/love/sola/netsupport/pojo/User.java | 17 ++ .../sola/netsupport/session/MapSession.java | 17 ++ .../session/MapSessionRepository.java | 17 ++ .../netsupport/session/WechatSession.java | 17 ++ .../sola/netsupport/session/WxSession.java | 17 ++ .../love/sola/netsupport/sql/SQLCore.java | 17 ++ .../love/sola/netsupport/sql/TableConfig.java | 17 ++ .../sola/netsupport/sql/TableOperator.java | 17 ++ .../love/sola/netsupport/sql/TableTicket.java | 17 ++ .../love/sola/netsupport/sql/TableUser.java | 17 ++ .../love/sola/netsupport/util/Checker.java | 17 ++ .../love/sola/netsupport/util/Crypto.java | 17 ++ .../love/sola/netsupport/util/ParseUtil.java | 17 ++ .../love/sola/netsupport/util/RSAUtil.java | 17 ++ .../love/sola/netsupport/util/Redirect.java | 17 ++ .../love/sola/netsupport/wechat/Command.java | 17 ++ .../sola/netsupport/wechat/WxMpServlet.java | 17 ++ .../wechat/handler/AutoReplyHandler.java | 17 ++ .../wechat/handler/CancelHandler.java | 17 ++ .../wechat/handler/ProfileHandler.java | 17 ++ .../wechat/handler/QueryHandler.java | 17 ++ .../wechat/handler/RegisterHandler.java | 17 ++ .../wechat/handler/SubmitHandler.java | 17 ++ .../wechat/handler/SubscribeHandler.java | 17 ++ .../wechat/handler/admin/LoginHandler.java | 17 ++ .../handler/admin/OperatorInfoHandler.java | 17 ++ .../wechat/handler/admin/SignHandler.java | 17 ++ .../wechat/matcher/CheckSpamMatcher.java | 17 ++ .../wechat/matcher/CommandMatcher.java | 17 ++ .../wechat/matcher/RegisterMatcher.java | 17 ++ 65 files changed, 1264 insertions(+) create mode 100644 LICENSE create mode 100644 README.md diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..65c5ca8 --- /dev/null +++ b/LICENSE @@ -0,0 +1,165 @@ + GNU LESSER GENERAL PUBLIC LICENSE + Version 3, 29 June 2007 + + Copyright (C) 2007 Free Software Foundation, Inc. + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + + This version of the GNU Lesser General Public License incorporates +the terms and conditions of version 3 of the GNU General Public +License, supplemented by the additional permissions listed below. + + 0. Additional Definitions. + + As used herein, "this License" refers to version 3 of the GNU Lesser +General Public License, and the "GNU GPL" refers to version 3 of the GNU +General Public License. + + "The Library" refers to a covered work governed by this License, +other than an Application or a Combined Work as defined below. + + An "Application" is any work that makes use of an interface provided +by the Library, but which is not otherwise based on the Library. +Defining a subclass of a class defined by the Library is deemed a mode +of using an interface provided by the Library. + + A "Combined Work" is a work produced by combining or linking an +Application with the Library. The particular version of the Library +with which the Combined Work was made is also called the "Linked +Version". + + The "Minimal Corresponding Source" for a Combined Work means the +Corresponding Source for the Combined Work, excluding any source code +for portions of the Combined Work that, considered in isolation, are +based on the Application, and not on the Linked Version. + + The "Corresponding Application Code" for a Combined Work means the +object code and/or source code for the Application, including any data +and utility programs needed for reproducing the Combined Work from the +Application, but excluding the System Libraries of the Combined Work. + + 1. Exception to Section 3 of the GNU GPL. + + You may convey a covered work under sections 3 and 4 of this License +without being bound by section 3 of the GNU GPL. + + 2. Conveying Modified Versions. + + If you modify a copy of the Library, and, in your modifications, a +facility refers to a function or data to be supplied by an Application +that uses the facility (other than as an argument passed when the +facility is invoked), then you may convey a copy of the modified +version: + + a) under this License, provided that you make a good faith effort to + ensure that, in the event an Application does not supply the + function or data, the facility still operates, and performs + whatever part of its purpose remains meaningful, or + + b) under the GNU GPL, with none of the additional permissions of + this License applicable to that copy. + + 3. Object Code Incorporating Material from Library Header Files. + + The object code form of an Application may incorporate material from +a header file that is part of the Library. You may convey such object +code under terms of your choice, provided that, if the incorporated +material is not limited to numerical parameters, data structure +layouts and accessors, or small macros, inline functions and templates +(ten or fewer lines in length), you do both of the following: + + a) Give prominent notice with each copy of the object code that the + Library is used in it and that the Library and its use are + covered by this License. + + b) Accompany the object code with a copy of the GNU GPL and this license + document. + + 4. Combined Works. + + You may convey a Combined Work under terms of your choice that, +taken together, effectively do not restrict modification of the +portions of the Library contained in the Combined Work and reverse +engineering for debugging such modifications, if you also do each of +the following: + + a) Give prominent notice with each copy of the Combined Work that + the Library is used in it and that the Library and its use are + covered by this License. + + b) Accompany the Combined Work with a copy of the GNU GPL and this license + document. + + c) For a Combined Work that displays copyright notices during + execution, include the copyright notice for the Library among + these notices, as well as a reference directing the user to the + copies of the GNU GPL and this license document. + + d) Do one of the following: + + 0) Convey the Minimal Corresponding Source under the terms of this + License, and the Corresponding Application Code in a form + suitable for, and under terms that permit, the user to + recombine or relink the Application with a modified version of + the Linked Version to produce a modified Combined Work, in the + manner specified by section 6 of the GNU GPL for conveying + Corresponding Source. + + 1) Use a suitable shared library mechanism for linking with the + Library. A suitable mechanism is one that (a) uses at run time + a copy of the Library already present on the user's computer + system, and (b) will operate properly with a modified version + of the Library that is interface-compatible with the Linked + Version. + + e) Provide Installation Information, but only if you would otherwise + be required to provide such information under section 6 of the + GNU GPL, and only to the extent that such information is + necessary to install and execute a modified version of the + Combined Work produced by recombining or relinking the + Application with a modified version of the Linked Version. (If + you use option 4d0, the Installation Information must accompany + the Minimal Corresponding Source and Corresponding Application + Code. If you use option 4d1, you must provide the Installation + Information in the manner specified by section 6 of the GNU GPL + for conveying Corresponding Source.) + + 5. Combined Libraries. + + You may place library facilities that are a work based on the +Library side by side in a single library together with other library +facilities that are not Applications and are not covered by this +License, and convey such a combined library under terms of your +choice, if you do both of the following: + + a) Accompany the combined library with a copy of the same work based + on the Library, uncombined with any other library facilities, + conveyed under the terms of this License. + + b) Give prominent notice with the combined library that part of it + is a work based on the Library, and explaining where to find the + accompanying uncombined form of the same work. + + 6. Revised Versions of the GNU Lesser General Public License. + + The Free Software Foundation may publish revised and/or new versions +of the GNU Lesser General Public License from time to time. Such new +versions will be similar in spirit to the present version, but may +differ in detail to address new problems or concerns. + + Each version is given a distinguishing version number. If the +Library as you received it specifies that a certain numbered version +of the GNU Lesser General Public License "or any later version" +applies to it, you have the option of following the terms and +conditions either of that published version or of any later version +published by the Free Software Foundation. If the Library as you +received it does not specify a version number of the GNU Lesser +General Public License, you may choose any version of the GNU Lesser +General Public License ever published by the Free Software Foundation. + + If the Library as you received it specifies that a proxy can decide +whether future versions of the GNU Lesser General Public License shall +apply, that proxy's public statement of acceptance of any version is +permanent authorization for you to choose that version for the +Library. diff --git a/README.md b/README.md new file mode 100644 index 0000000..dd66651 --- /dev/null +++ b/README.md @@ -0,0 +1,28 @@ +#WechatTicketSystem +WechatTicketSystem is a basic ticket system for network maintaining, based on Wechat. + +##Build +### Requirements +- [Apache Maven](https://maven.apache.org/) (latest version recommended) +### Steps +1. Clone the git repository `git clone https://github.com/ZSCNetSupportDept/WechatTicketSystem.git` +2. Change dir to project root (where the `pom.xml` is) +3. Build with Maven `mvn clean package` +4. The out file will be in `target/` folder + +##Contributing +###Code Style +The code style configuration is [here](http://stash.sola.love/projects/PSS/repos/ide_configuration/browse/intellij%20idea/Code_Style_Use_Tab.xml). + +In Intellij IDEA, you can import the configuration by Settings-\>Editor-\>Code Style-\>Manage(at right side)-\>Import.. +###Pull Request +Please notice that the pull requests should compare with `develop` branch instead of `master`, +submit pull requests to `master` branch will be ignored. +##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. +- 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. +- If you need to paste code, or include a stack trace use Markdown `` ``` `` escapes before and after your text. + +##License +WechatTicketSystem is distributed under the GNU Lesser General Public License v3.0 (LGPLv3). \ No newline at end of file diff --git a/src/main/java/love/sola/netsupport/Index.java b/src/main/java/love/sola/netsupport/Index.java index 97bd548..765d280 100644 --- a/src/main/java/love/sola/netsupport/Index.java +++ b/src/main/java/love/sola/netsupport/Index.java @@ -1,3 +1,20 @@ +/* + * This file is part of WechatTicketSystem. + * + * WechatTicketSystem is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * WechatTicketSystem is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with WechatTicketSystem. If not, see . + */ + package love.sola.netsupport; import javax.servlet.ServletException; diff --git a/src/main/java/love/sola/netsupport/api/API.java b/src/main/java/love/sola/netsupport/api/API.java index 9fe6699..b8d524c 100644 --- a/src/main/java/love/sola/netsupport/api/API.java +++ b/src/main/java/love/sola/netsupport/api/API.java @@ -1,3 +1,20 @@ +/* + * This file is part of WechatTicketSystem. + * + * WechatTicketSystem is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * WechatTicketSystem is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with WechatTicketSystem. If not, see . + */ + package love.sola.netsupport.api; import love.sola.netsupport.enums.Access; diff --git a/src/main/java/love/sola/netsupport/api/APIRouter.java b/src/main/java/love/sola/netsupport/api/APIRouter.java index dfe0f51..e9eb696 100644 --- a/src/main/java/love/sola/netsupport/api/APIRouter.java +++ b/src/main/java/love/sola/netsupport/api/APIRouter.java @@ -1,3 +1,20 @@ +/* + * This file is part of WechatTicketSystem. + * + * WechatTicketSystem is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * WechatTicketSystem is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with WechatTicketSystem. If not, see . + */ + package love.sola.netsupport.api; import com.google.gson.Gson; diff --git a/src/main/java/love/sola/netsupport/api/CheckSession.java b/src/main/java/love/sola/netsupport/api/CheckSession.java index 5f15a17..36bf235 100644 --- a/src/main/java/love/sola/netsupport/api/CheckSession.java +++ b/src/main/java/love/sola/netsupport/api/CheckSession.java @@ -1,3 +1,20 @@ +/* + * This file is part of WechatTicketSystem. + * + * WechatTicketSystem is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * WechatTicketSystem is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with WechatTicketSystem. If not, see . + */ + package love.sola.netsupport.api; import love.sola.netsupport.enums.Access; diff --git a/src/main/java/love/sola/netsupport/api/Error.java b/src/main/java/love/sola/netsupport/api/Error.java index 624dda2..d381481 100644 --- a/src/main/java/love/sola/netsupport/api/Error.java +++ b/src/main/java/love/sola/netsupport/api/Error.java @@ -1,3 +1,20 @@ +/* + * This file is part of WechatTicketSystem. + * + * WechatTicketSystem is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * WechatTicketSystem is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with WechatTicketSystem. If not, see . + */ + package love.sola.netsupport.api; import static love.sola.netsupport.config.Lang.lang; diff --git a/src/main/java/love/sola/netsupport/api/Login.java b/src/main/java/love/sola/netsupport/api/Login.java index 152d1ba..1b1ca12 100644 --- a/src/main/java/love/sola/netsupport/api/Login.java +++ b/src/main/java/love/sola/netsupport/api/Login.java @@ -1,3 +1,20 @@ +/* + * This file is part of WechatTicketSystem. + * + * WechatTicketSystem is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * WechatTicketSystem is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with WechatTicketSystem. If not, see . + */ + package love.sola.netsupport.api; import com.google.gson.Gson; diff --git a/src/main/java/love/sola/netsupport/api/manager/GetUser.java b/src/main/java/love/sola/netsupport/api/manager/GetUser.java index 88cdb77..983fc03 100644 --- a/src/main/java/love/sola/netsupport/api/manager/GetUser.java +++ b/src/main/java/love/sola/netsupport/api/manager/GetUser.java @@ -1,3 +1,20 @@ +/* + * This file is part of WechatTicketSystem. + * + * WechatTicketSystem is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * WechatTicketSystem is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with WechatTicketSystem. If not, see . + */ + package love.sola.netsupport.api.manager; import love.sola.netsupport.api.API; diff --git a/src/main/java/love/sola/netsupport/api/manager/TicketPush.java b/src/main/java/love/sola/netsupport/api/manager/TicketPush.java index 61db57b..f19f9f1 100644 --- a/src/main/java/love/sola/netsupport/api/manager/TicketPush.java +++ b/src/main/java/love/sola/netsupport/api/manager/TicketPush.java @@ -1,3 +1,20 @@ +/* + * This file is part of WechatTicketSystem. + * + * WechatTicketSystem is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * WechatTicketSystem is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with WechatTicketSystem. If not, see . + */ + package love.sola.netsupport.api.manager; import love.sola.netsupport.api.API; diff --git a/src/main/java/love/sola/netsupport/api/root/DashBoard.java b/src/main/java/love/sola/netsupport/api/root/DashBoard.java index 7951b98..b95a096 100644 --- a/src/main/java/love/sola/netsupport/api/root/DashBoard.java +++ b/src/main/java/love/sola/netsupport/api/root/DashBoard.java @@ -1,3 +1,20 @@ +/* + * This file is part of WechatTicketSystem. + * + * WechatTicketSystem is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * WechatTicketSystem is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with WechatTicketSystem. If not, see . + */ + package love.sola.netsupport.api.root; import love.sola.netsupport.api.API; diff --git a/src/main/java/love/sola/netsupport/api/root/FlushCache.java b/src/main/java/love/sola/netsupport/api/root/FlushCache.java index fe267a8..2e03ffb 100644 --- a/src/main/java/love/sola/netsupport/api/root/FlushCache.java +++ b/src/main/java/love/sola/netsupport/api/root/FlushCache.java @@ -1,3 +1,20 @@ +/* + * This file is part of WechatTicketSystem. + * + * WechatTicketSystem is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * WechatTicketSystem is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with WechatTicketSystem. If not, see . + */ + package love.sola.netsupport.api.root; import love.sola.netsupport.api.API; diff --git a/src/main/java/love/sola/netsupport/api/root/SetPassword.java b/src/main/java/love/sola/netsupport/api/root/SetPassword.java index 51fadae..657cd64 100644 --- a/src/main/java/love/sola/netsupport/api/root/SetPassword.java +++ b/src/main/java/love/sola/netsupport/api/root/SetPassword.java @@ -1,3 +1,20 @@ +/* + * This file is part of WechatTicketSystem. + * + * WechatTicketSystem is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * WechatTicketSystem is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with WechatTicketSystem. If not, see . + */ + package love.sola.netsupport.api.root; import love.sola.netsupport.api.API; diff --git a/src/main/java/love/sola/netsupport/api/stuff/TicketLog.java b/src/main/java/love/sola/netsupport/api/stuff/TicketLog.java index 77af4d1..07dbd24 100644 --- a/src/main/java/love/sola/netsupport/api/stuff/TicketLog.java +++ b/src/main/java/love/sola/netsupport/api/stuff/TicketLog.java @@ -1,3 +1,20 @@ +/* + * This file is part of WechatTicketSystem. + * + * WechatTicketSystem is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * WechatTicketSystem is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with WechatTicketSystem. If not, see . + */ + package love.sola.netsupport.api.stuff; import love.sola.netsupport.api.API; diff --git a/src/main/java/love/sola/netsupport/api/stuff/TicketLookup.java b/src/main/java/love/sola/netsupport/api/stuff/TicketLookup.java index 76dcb50..a0984ad 100644 --- a/src/main/java/love/sola/netsupport/api/stuff/TicketLookup.java +++ b/src/main/java/love/sola/netsupport/api/stuff/TicketLookup.java @@ -1,3 +1,20 @@ +/* + * This file is part of WechatTicketSystem. + * + * WechatTicketSystem is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * WechatTicketSystem is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with WechatTicketSystem. If not, see . + */ + package love.sola.netsupport.api.stuff; import love.sola.netsupport.api.API; diff --git a/src/main/java/love/sola/netsupport/api/stuff/TicketTrack.java b/src/main/java/love/sola/netsupport/api/stuff/TicketTrack.java index 9146bcc..c763f5c 100644 --- a/src/main/java/love/sola/netsupport/api/stuff/TicketTrack.java +++ b/src/main/java/love/sola/netsupport/api/stuff/TicketTrack.java @@ -1,3 +1,20 @@ +/* + * This file is part of WechatTicketSystem. + * + * WechatTicketSystem is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * WechatTicketSystem is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with WechatTicketSystem. If not, see . + */ + package love.sola.netsupport.api.stuff; import love.sola.netsupport.api.API; diff --git a/src/main/java/love/sola/netsupport/api/stuff/TicketUpdate.java b/src/main/java/love/sola/netsupport/api/stuff/TicketUpdate.java index cfd2685..b005fa9 100644 --- a/src/main/java/love/sola/netsupport/api/stuff/TicketUpdate.java +++ b/src/main/java/love/sola/netsupport/api/stuff/TicketUpdate.java @@ -1,3 +1,20 @@ +/* + * This file is part of WechatTicketSystem. + * + * WechatTicketSystem is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * WechatTicketSystem is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with WechatTicketSystem. If not, see . + */ + package love.sola.netsupport.api.stuff; import love.sola.netsupport.api.API; diff --git a/src/main/java/love/sola/netsupport/api/user/ProfileModify.java b/src/main/java/love/sola/netsupport/api/user/ProfileModify.java index da80166..07e339c 100644 --- a/src/main/java/love/sola/netsupport/api/user/ProfileModify.java +++ b/src/main/java/love/sola/netsupport/api/user/ProfileModify.java @@ -1,3 +1,20 @@ +/* + * This file is part of WechatTicketSystem. + * + * WechatTicketSystem is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * WechatTicketSystem is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with WechatTicketSystem. If not, see . + */ + package love.sola.netsupport.api.user; import love.sola.netsupport.api.API; diff --git a/src/main/java/love/sola/netsupport/api/user/Register.java b/src/main/java/love/sola/netsupport/api/user/Register.java index 3016164..7b60935 100644 --- a/src/main/java/love/sola/netsupport/api/user/Register.java +++ b/src/main/java/love/sola/netsupport/api/user/Register.java @@ -1,3 +1,20 @@ +/* + * This file is part of WechatTicketSystem. + * + * WechatTicketSystem is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * WechatTicketSystem is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with WechatTicketSystem. If not, see . + */ + package love.sola.netsupport.api.user; import love.sola.netsupport.api.API; diff --git a/src/main/java/love/sola/netsupport/api/user/TicketQuery.java b/src/main/java/love/sola/netsupport/api/user/TicketQuery.java index 23aaa5e..b536d90 100644 --- a/src/main/java/love/sola/netsupport/api/user/TicketQuery.java +++ b/src/main/java/love/sola/netsupport/api/user/TicketQuery.java @@ -1,3 +1,20 @@ +/* + * This file is part of WechatTicketSystem. + * + * WechatTicketSystem is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * WechatTicketSystem is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with WechatTicketSystem. If not, see . + */ + package love.sola.netsupport.api.user; import love.sola.netsupport.api.API; diff --git a/src/main/java/love/sola/netsupport/api/user/TicketSubmit.java b/src/main/java/love/sola/netsupport/api/user/TicketSubmit.java index 36d4b79..a3608d0 100644 --- a/src/main/java/love/sola/netsupport/api/user/TicketSubmit.java +++ b/src/main/java/love/sola/netsupport/api/user/TicketSubmit.java @@ -1,3 +1,20 @@ +/* + * This file is part of WechatTicketSystem. + * + * WechatTicketSystem is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * WechatTicketSystem is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with WechatTicketSystem. If not, see . + */ + package love.sola.netsupport.api.user; import love.sola.netsupport.api.API; diff --git a/src/main/java/love/sola/netsupport/auth/OAuth2.java b/src/main/java/love/sola/netsupport/auth/OAuth2.java index e9c3d2e..44fee9c 100644 --- a/src/main/java/love/sola/netsupport/auth/OAuth2.java +++ b/src/main/java/love/sola/netsupport/auth/OAuth2.java @@ -1,3 +1,20 @@ +/* + * This file is part of WechatTicketSystem. + * + * WechatTicketSystem is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * WechatTicketSystem is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with WechatTicketSystem. If not, see . + */ + package love.sola.netsupport.auth; import love.sola.netsupport.session.WechatSession; diff --git a/src/main/java/love/sola/netsupport/auth/OAuth2Handler.java b/src/main/java/love/sola/netsupport/auth/OAuth2Handler.java index 00f4a99..1dce3c0 100644 --- a/src/main/java/love/sola/netsupport/auth/OAuth2Handler.java +++ b/src/main/java/love/sola/netsupport/auth/OAuth2Handler.java @@ -1,3 +1,20 @@ +/* + * This file is part of WechatTicketSystem. + * + * WechatTicketSystem is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * WechatTicketSystem is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with WechatTicketSystem. If not, see . + */ + package love.sola.netsupport.auth; import love.sola.netsupport.session.WxSession; diff --git a/src/main/java/love/sola/netsupport/config/Cortana.java b/src/main/java/love/sola/netsupport/config/Cortana.java index b584ba8..4e3c4d8 100644 --- a/src/main/java/love/sola/netsupport/config/Cortana.java +++ b/src/main/java/love/sola/netsupport/config/Cortana.java @@ -1,3 +1,20 @@ +/* + * This file is part of WechatTicketSystem. + * + * WechatTicketSystem is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * WechatTicketSystem is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with WechatTicketSystem. If not, see . + */ + package love.sola.netsupport.config; import lombok.Data; diff --git a/src/main/java/love/sola/netsupport/config/Lang.java b/src/main/java/love/sola/netsupport/config/Lang.java index 6934421..09c9a07 100644 --- a/src/main/java/love/sola/netsupport/config/Lang.java +++ b/src/main/java/love/sola/netsupport/config/Lang.java @@ -1,3 +1,20 @@ +/* + * This file is part of WechatTicketSystem. + * + * WechatTicketSystem is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * WechatTicketSystem is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with WechatTicketSystem. If not, see . + */ + package love.sola.netsupport.config; import org.yaml.snakeyaml.Yaml; diff --git a/src/main/java/love/sola/netsupport/config/Settings.java b/src/main/java/love/sola/netsupport/config/Settings.java index c44243d..21bd9d0 100644 --- a/src/main/java/love/sola/netsupport/config/Settings.java +++ b/src/main/java/love/sola/netsupport/config/Settings.java @@ -1,3 +1,20 @@ +/* + * This file is part of WechatTicketSystem. + * + * WechatTicketSystem is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * WechatTicketSystem is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with WechatTicketSystem. If not, see . + */ + package love.sola.netsupport.config; import lombok.ToString; diff --git a/src/main/java/love/sola/netsupport/config/WxMpXmlInMemoryConfigStorage.java b/src/main/java/love/sola/netsupport/config/WxMpXmlInMemoryConfigStorage.java index 9218e1b..576fcf8 100644 --- a/src/main/java/love/sola/netsupport/config/WxMpXmlInMemoryConfigStorage.java +++ b/src/main/java/love/sola/netsupport/config/WxMpXmlInMemoryConfigStorage.java @@ -1,3 +1,20 @@ +/* + * This file is part of WechatTicketSystem. + * + * WechatTicketSystem is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * WechatTicketSystem is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with WechatTicketSystem. If not, see . + */ + package love.sola.netsupport.config; import com.thoughtworks.xstream.XStream; diff --git a/src/main/java/love/sola/netsupport/enums/Access.java b/src/main/java/love/sola/netsupport/enums/Access.java index 2c4b3e4..08bb6d6 100644 --- a/src/main/java/love/sola/netsupport/enums/Access.java +++ b/src/main/java/love/sola/netsupport/enums/Access.java @@ -1,3 +1,20 @@ +/* + * This file is part of WechatTicketSystem. + * + * WechatTicketSystem is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * WechatTicketSystem is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with WechatTicketSystem. If not, see . + */ + package love.sola.netsupport.enums; import java.lang.reflect.Field; diff --git a/src/main/java/love/sola/netsupport/enums/Attribute.java b/src/main/java/love/sola/netsupport/enums/Attribute.java index ffb5d29..65eb842 100644 --- a/src/main/java/love/sola/netsupport/enums/Attribute.java +++ b/src/main/java/love/sola/netsupport/enums/Attribute.java @@ -1,3 +1,20 @@ +/* + * This file is part of WechatTicketSystem. + * + * WechatTicketSystem is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * WechatTicketSystem is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with WechatTicketSystem. If not, see . + */ + package love.sola.netsupport.enums; /** diff --git a/src/main/java/love/sola/netsupport/enums/Block.java b/src/main/java/love/sola/netsupport/enums/Block.java index a0ca63c..59f7dc3 100644 --- a/src/main/java/love/sola/netsupport/enums/Block.java +++ b/src/main/java/love/sola/netsupport/enums/Block.java @@ -1,3 +1,20 @@ +/* + * This file is part of WechatTicketSystem. + * + * WechatTicketSystem is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * WechatTicketSystem is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with WechatTicketSystem. If not, see . + */ + package love.sola.netsupport.enums; import java.lang.reflect.Field; diff --git a/src/main/java/love/sola/netsupport/enums/ISP.java b/src/main/java/love/sola/netsupport/enums/ISP.java index 61d1d80..cbb9c47 100644 --- a/src/main/java/love/sola/netsupport/enums/ISP.java +++ b/src/main/java/love/sola/netsupport/enums/ISP.java @@ -1,3 +1,20 @@ +/* + * This file is part of WechatTicketSystem. + * + * WechatTicketSystem is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * WechatTicketSystem is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with WechatTicketSystem. If not, see . + */ + package love.sola.netsupport.enums; import java.util.HashMap; diff --git a/src/main/java/love/sola/netsupport/enums/ISPConverter.java b/src/main/java/love/sola/netsupport/enums/ISPConverter.java index 027f575..5cf41da 100644 --- a/src/main/java/love/sola/netsupport/enums/ISPConverter.java +++ b/src/main/java/love/sola/netsupport/enums/ISPConverter.java @@ -1,3 +1,20 @@ +/* + * This file is part of WechatTicketSystem. + * + * WechatTicketSystem is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * WechatTicketSystem is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with WechatTicketSystem. If not, see . + */ + package love.sola.netsupport.enums; import javax.persistence.AttributeConverter; diff --git a/src/main/java/love/sola/netsupport/enums/Status.java b/src/main/java/love/sola/netsupport/enums/Status.java index 37de042..91dc725 100644 --- a/src/main/java/love/sola/netsupport/enums/Status.java +++ b/src/main/java/love/sola/netsupport/enums/Status.java @@ -1,3 +1,20 @@ +/* + * This file is part of WechatTicketSystem. + * + * WechatTicketSystem is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * WechatTicketSystem is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with WechatTicketSystem. If not, see . + */ + package love.sola.netsupport.enums; import java.lang.reflect.Field; diff --git a/src/main/java/love/sola/netsupport/pojo/Operator.java b/src/main/java/love/sola/netsupport/pojo/Operator.java index 4b73c6e..a431021 100644 --- a/src/main/java/love/sola/netsupport/pojo/Operator.java +++ b/src/main/java/love/sola/netsupport/pojo/Operator.java @@ -1,3 +1,20 @@ +/* + * This file is part of WechatTicketSystem. + * + * WechatTicketSystem is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * WechatTicketSystem is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with WechatTicketSystem. If not, see . + */ + package love.sola.netsupport.pojo; import com.google.gson.annotations.Expose; diff --git a/src/main/java/love/sola/netsupport/pojo/Ticket.java b/src/main/java/love/sola/netsupport/pojo/Ticket.java index e880075..c505219 100644 --- a/src/main/java/love/sola/netsupport/pojo/Ticket.java +++ b/src/main/java/love/sola/netsupport/pojo/Ticket.java @@ -1,3 +1,20 @@ +/* + * This file is part of WechatTicketSystem. + * + * WechatTicketSystem is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * WechatTicketSystem is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with WechatTicketSystem. If not, see . + */ + package love.sola.netsupport.pojo; import lombok.AllArgsConstructor; diff --git a/src/main/java/love/sola/netsupport/pojo/User.java b/src/main/java/love/sola/netsupport/pojo/User.java index 20f2b19..81d6e58 100644 --- a/src/main/java/love/sola/netsupport/pojo/User.java +++ b/src/main/java/love/sola/netsupport/pojo/User.java @@ -1,3 +1,20 @@ +/* + * This file is part of WechatTicketSystem. + * + * WechatTicketSystem is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * WechatTicketSystem is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with WechatTicketSystem. If not, see . + */ + package love.sola.netsupport.pojo; import com.google.gson.annotations.Expose; diff --git a/src/main/java/love/sola/netsupport/session/MapSession.java b/src/main/java/love/sola/netsupport/session/MapSession.java index 7c67e04..b8a4fb6 100644 --- a/src/main/java/love/sola/netsupport/session/MapSession.java +++ b/src/main/java/love/sola/netsupport/session/MapSession.java @@ -1,3 +1,20 @@ +/* + * This file is part of WechatTicketSystem. + * + * WechatTicketSystem is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * WechatTicketSystem is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with WechatTicketSystem. If not, see . + */ + /* * Copyright 2002-2015 the original author or authors. * diff --git a/src/main/java/love/sola/netsupport/session/MapSessionRepository.java b/src/main/java/love/sola/netsupport/session/MapSessionRepository.java index 87b7cf8..31604ea 100644 --- a/src/main/java/love/sola/netsupport/session/MapSessionRepository.java +++ b/src/main/java/love/sola/netsupport/session/MapSessionRepository.java @@ -1,3 +1,20 @@ +/* + * This file is part of WechatTicketSystem. + * + * WechatTicketSystem is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * WechatTicketSystem is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with WechatTicketSystem. If not, see . + */ + /* * Copyright 2002-2015 the original author or authors. * diff --git a/src/main/java/love/sola/netsupport/session/WechatSession.java b/src/main/java/love/sola/netsupport/session/WechatSession.java index 6d99efb..3780bfe 100644 --- a/src/main/java/love/sola/netsupport/session/WechatSession.java +++ b/src/main/java/love/sola/netsupport/session/WechatSession.java @@ -1,3 +1,20 @@ +/* + * This file is part of WechatTicketSystem. + * + * WechatTicketSystem is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * WechatTicketSystem is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with WechatTicketSystem. If not, see . + */ + package love.sola.netsupport.session; diff --git a/src/main/java/love/sola/netsupport/session/WxSession.java b/src/main/java/love/sola/netsupport/session/WxSession.java index 70736de..ffbf82c 100644 --- a/src/main/java/love/sola/netsupport/session/WxSession.java +++ b/src/main/java/love/sola/netsupport/session/WxSession.java @@ -1,3 +1,20 @@ +/* + * This file is part of WechatTicketSystem. + * + * WechatTicketSystem is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * WechatTicketSystem is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with WechatTicketSystem. If not, see . + */ + package love.sola.netsupport.session; import java.util.Set; diff --git a/src/main/java/love/sola/netsupport/sql/SQLCore.java b/src/main/java/love/sola/netsupport/sql/SQLCore.java index c00af34..696c28d 100644 --- a/src/main/java/love/sola/netsupport/sql/SQLCore.java +++ b/src/main/java/love/sola/netsupport/sql/SQLCore.java @@ -1,3 +1,20 @@ +/* + * This file is part of WechatTicketSystem. + * + * WechatTicketSystem is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * WechatTicketSystem is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with WechatTicketSystem. If not, see . + */ + package love.sola.netsupport.sql; import com.google.gson.*; diff --git a/src/main/java/love/sola/netsupport/sql/TableConfig.java b/src/main/java/love/sola/netsupport/sql/TableConfig.java index 9c752ca..4994594 100644 --- a/src/main/java/love/sola/netsupport/sql/TableConfig.java +++ b/src/main/java/love/sola/netsupport/sql/TableConfig.java @@ -1,3 +1,20 @@ +/* + * This file is part of WechatTicketSystem. + * + * WechatTicketSystem is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * WechatTicketSystem is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with WechatTicketSystem. If not, see . + */ + package love.sola.netsupport.sql; import love.sola.netsupport.config.Settings; diff --git a/src/main/java/love/sola/netsupport/sql/TableOperator.java b/src/main/java/love/sola/netsupport/sql/TableOperator.java index b74257d..8c54f84 100644 --- a/src/main/java/love/sola/netsupport/sql/TableOperator.java +++ b/src/main/java/love/sola/netsupport/sql/TableOperator.java @@ -1,3 +1,20 @@ +/* + * This file is part of WechatTicketSystem. + * + * WechatTicketSystem is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * WechatTicketSystem is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with WechatTicketSystem. If not, see . + */ + package love.sola.netsupport.sql; import love.sola.netsupport.pojo.Operator; diff --git a/src/main/java/love/sola/netsupport/sql/TableTicket.java b/src/main/java/love/sola/netsupport/sql/TableTicket.java index 02cf1a7..6d4deef 100644 --- a/src/main/java/love/sola/netsupport/sql/TableTicket.java +++ b/src/main/java/love/sola/netsupport/sql/TableTicket.java @@ -1,3 +1,20 @@ +/* + * This file is part of WechatTicketSystem. + * + * WechatTicketSystem is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * WechatTicketSystem is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with WechatTicketSystem. If not, see . + */ + package love.sola.netsupport.sql; import love.sola.netsupport.enums.Status; diff --git a/src/main/java/love/sola/netsupport/sql/TableUser.java b/src/main/java/love/sola/netsupport/sql/TableUser.java index 7218d0b..279f80a 100644 --- a/src/main/java/love/sola/netsupport/sql/TableUser.java +++ b/src/main/java/love/sola/netsupport/sql/TableUser.java @@ -1,3 +1,20 @@ +/* + * This file is part of WechatTicketSystem. + * + * WechatTicketSystem is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * WechatTicketSystem is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with WechatTicketSystem. If not, see . + */ + package love.sola.netsupport.sql; import com.google.common.cache.CacheBuilder; diff --git a/src/main/java/love/sola/netsupport/util/Checker.java b/src/main/java/love/sola/netsupport/util/Checker.java index a579082..139a1f9 100644 --- a/src/main/java/love/sola/netsupport/util/Checker.java +++ b/src/main/java/love/sola/netsupport/util/Checker.java @@ -1,3 +1,20 @@ +/* + * This file is part of WechatTicketSystem. + * + * WechatTicketSystem is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * WechatTicketSystem is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with WechatTicketSystem. If not, see . + */ + package love.sola.netsupport.util; import love.sola.netsupport.enums.Block; diff --git a/src/main/java/love/sola/netsupport/util/Crypto.java b/src/main/java/love/sola/netsupport/util/Crypto.java index 8aaf5ec..544ba03 100644 --- a/src/main/java/love/sola/netsupport/util/Crypto.java +++ b/src/main/java/love/sola/netsupport/util/Crypto.java @@ -1,3 +1,20 @@ +/* + * This file is part of WechatTicketSystem. + * + * WechatTicketSystem is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * WechatTicketSystem is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with WechatTicketSystem. If not, see . + */ + package love.sola.netsupport.util; import org.mindrot.jbcrypt.BCrypt; diff --git a/src/main/java/love/sola/netsupport/util/ParseUtil.java b/src/main/java/love/sola/netsupport/util/ParseUtil.java index ff96ab8..d31c50c 100644 --- a/src/main/java/love/sola/netsupport/util/ParseUtil.java +++ b/src/main/java/love/sola/netsupport/util/ParseUtil.java @@ -1,3 +1,20 @@ +/* + * This file is part of WechatTicketSystem. + * + * WechatTicketSystem is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * WechatTicketSystem is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with WechatTicketSystem. If not, see . + */ + package love.sola.netsupport.util; import love.sola.netsupport.enums.Status; diff --git a/src/main/java/love/sola/netsupport/util/RSAUtil.java b/src/main/java/love/sola/netsupport/util/RSAUtil.java index 3ef996c..1008185 100644 --- a/src/main/java/love/sola/netsupport/util/RSAUtil.java +++ b/src/main/java/love/sola/netsupport/util/RSAUtil.java @@ -1,3 +1,20 @@ +/* + * This file is part of WechatTicketSystem. + * + * WechatTicketSystem is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * WechatTicketSystem is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with WechatTicketSystem. If not, see . + */ + package love.sola.netsupport.util; import org.apache.commons.codec.binary.Base64; diff --git a/src/main/java/love/sola/netsupport/util/Redirect.java b/src/main/java/love/sola/netsupport/util/Redirect.java index f5c0aea..a50f41a 100644 --- a/src/main/java/love/sola/netsupport/util/Redirect.java +++ b/src/main/java/love/sola/netsupport/util/Redirect.java @@ -1,3 +1,20 @@ +/* + * This file is part of WechatTicketSystem. + * + * WechatTicketSystem is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * WechatTicketSystem is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with WechatTicketSystem. If not, see . + */ + package love.sola.netsupport.util; import com.google.common.net.UrlEscapers; diff --git a/src/main/java/love/sola/netsupport/wechat/Command.java b/src/main/java/love/sola/netsupport/wechat/Command.java index 7ca8078..b710391 100644 --- a/src/main/java/love/sola/netsupport/wechat/Command.java +++ b/src/main/java/love/sola/netsupport/wechat/Command.java @@ -1,3 +1,20 @@ +/* + * This file is part of WechatTicketSystem. + * + * WechatTicketSystem is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * WechatTicketSystem is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with WechatTicketSystem. If not, see . + */ + package love.sola.netsupport.wechat; import love.sola.netsupport.wechat.handler.*; diff --git a/src/main/java/love/sola/netsupport/wechat/WxMpServlet.java b/src/main/java/love/sola/netsupport/wechat/WxMpServlet.java index 4151734..2fe9d37 100644 --- a/src/main/java/love/sola/netsupport/wechat/WxMpServlet.java +++ b/src/main/java/love/sola/netsupport/wechat/WxMpServlet.java @@ -1,3 +1,20 @@ +/* + * This file is part of WechatTicketSystem. + * + * WechatTicketSystem is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * WechatTicketSystem is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with WechatTicketSystem. If not, see . + */ + package love.sola.netsupport.wechat; import love.sola.netsupport.auth.OAuth2; diff --git a/src/main/java/love/sola/netsupport/wechat/handler/AutoReplyHandler.java b/src/main/java/love/sola/netsupport/wechat/handler/AutoReplyHandler.java index dc9273b..dcc4926 100644 --- a/src/main/java/love/sola/netsupport/wechat/handler/AutoReplyHandler.java +++ b/src/main/java/love/sola/netsupport/wechat/handler/AutoReplyHandler.java @@ -1,3 +1,20 @@ +/* + * This file is part of WechatTicketSystem. + * + * WechatTicketSystem is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * WechatTicketSystem is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with WechatTicketSystem. If not, see . + */ + package love.sola.netsupport.wechat.handler; import me.chanjar.weixin.common.exception.WxErrorException; diff --git a/src/main/java/love/sola/netsupport/wechat/handler/CancelHandler.java b/src/main/java/love/sola/netsupport/wechat/handler/CancelHandler.java index 0138727..e94c2fe 100644 --- a/src/main/java/love/sola/netsupport/wechat/handler/CancelHandler.java +++ b/src/main/java/love/sola/netsupport/wechat/handler/CancelHandler.java @@ -1,3 +1,20 @@ +/* + * This file is part of WechatTicketSystem. + * + * WechatTicketSystem is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * WechatTicketSystem is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with WechatTicketSystem. If not, see . + */ + package love.sola.netsupport.wechat.handler; import love.sola.netsupport.enums.Status; diff --git a/src/main/java/love/sola/netsupport/wechat/handler/ProfileHandler.java b/src/main/java/love/sola/netsupport/wechat/handler/ProfileHandler.java index 92ea090..58d6a58 100644 --- a/src/main/java/love/sola/netsupport/wechat/handler/ProfileHandler.java +++ b/src/main/java/love/sola/netsupport/wechat/handler/ProfileHandler.java @@ -1,3 +1,20 @@ +/* + * This file is part of WechatTicketSystem. + * + * WechatTicketSystem is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * WechatTicketSystem is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with WechatTicketSystem. If not, see . + */ + package love.sola.netsupport.wechat.handler; import love.sola.netsupport.auth.OAuth2Handler; diff --git a/src/main/java/love/sola/netsupport/wechat/handler/QueryHandler.java b/src/main/java/love/sola/netsupport/wechat/handler/QueryHandler.java index 3d4cfca..4820b78 100644 --- a/src/main/java/love/sola/netsupport/wechat/handler/QueryHandler.java +++ b/src/main/java/love/sola/netsupport/wechat/handler/QueryHandler.java @@ -1,3 +1,20 @@ +/* + * This file is part of WechatTicketSystem. + * + * WechatTicketSystem is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * WechatTicketSystem is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with WechatTicketSystem. If not, see . + */ + package love.sola.netsupport.wechat.handler; import love.sola.netsupport.enums.Attribute; diff --git a/src/main/java/love/sola/netsupport/wechat/handler/RegisterHandler.java b/src/main/java/love/sola/netsupport/wechat/handler/RegisterHandler.java index 52e8110..373b5ac 100644 --- a/src/main/java/love/sola/netsupport/wechat/handler/RegisterHandler.java +++ b/src/main/java/love/sola/netsupport/wechat/handler/RegisterHandler.java @@ -1,3 +1,20 @@ +/* + * This file is part of WechatTicketSystem. + * + * WechatTicketSystem is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * WechatTicketSystem is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with WechatTicketSystem. If not, see . + */ + package love.sola.netsupport.wechat.handler; import love.sola.netsupport.enums.Attribute; diff --git a/src/main/java/love/sola/netsupport/wechat/handler/SubmitHandler.java b/src/main/java/love/sola/netsupport/wechat/handler/SubmitHandler.java index aa3c4eb..674f93e 100644 --- a/src/main/java/love/sola/netsupport/wechat/handler/SubmitHandler.java +++ b/src/main/java/love/sola/netsupport/wechat/handler/SubmitHandler.java @@ -1,3 +1,20 @@ +/* + * This file is part of WechatTicketSystem. + * + * WechatTicketSystem is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * WechatTicketSystem is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with WechatTicketSystem. If not, see . + */ + package love.sola.netsupport.wechat.handler; import love.sola.netsupport.enums.Attribute; diff --git a/src/main/java/love/sola/netsupport/wechat/handler/SubscribeHandler.java b/src/main/java/love/sola/netsupport/wechat/handler/SubscribeHandler.java index 0a89888..b03741f 100644 --- a/src/main/java/love/sola/netsupport/wechat/handler/SubscribeHandler.java +++ b/src/main/java/love/sola/netsupport/wechat/handler/SubscribeHandler.java @@ -1,3 +1,20 @@ +/* + * This file is part of WechatTicketSystem. + * + * WechatTicketSystem is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * WechatTicketSystem is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with WechatTicketSystem. If not, see . + */ + package love.sola.netsupport.wechat.handler; import love.sola.netsupport.api.user.Register; diff --git a/src/main/java/love/sola/netsupport/wechat/handler/admin/LoginHandler.java b/src/main/java/love/sola/netsupport/wechat/handler/admin/LoginHandler.java index a6cdf91..560272f 100644 --- a/src/main/java/love/sola/netsupport/wechat/handler/admin/LoginHandler.java +++ b/src/main/java/love/sola/netsupport/wechat/handler/admin/LoginHandler.java @@ -1,3 +1,20 @@ +/* + * This file is part of WechatTicketSystem. + * + * WechatTicketSystem is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * WechatTicketSystem is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with WechatTicketSystem. If not, see . + */ + package love.sola.netsupport.wechat.handler.admin; import love.sola.netsupport.auth.OAuth2Handler; diff --git a/src/main/java/love/sola/netsupport/wechat/handler/admin/OperatorInfoHandler.java b/src/main/java/love/sola/netsupport/wechat/handler/admin/OperatorInfoHandler.java index 49c1318..16a3a0c 100644 --- a/src/main/java/love/sola/netsupport/wechat/handler/admin/OperatorInfoHandler.java +++ b/src/main/java/love/sola/netsupport/wechat/handler/admin/OperatorInfoHandler.java @@ -1,3 +1,20 @@ +/* + * This file is part of WechatTicketSystem. + * + * WechatTicketSystem is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * WechatTicketSystem is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with WechatTicketSystem. If not, see . + */ + package love.sola.netsupport.wechat.handler.admin; import love.sola.netsupport.pojo.Operator; diff --git a/src/main/java/love/sola/netsupport/wechat/handler/admin/SignHandler.java b/src/main/java/love/sola/netsupport/wechat/handler/admin/SignHandler.java index f887735..d4418f0 100644 --- a/src/main/java/love/sola/netsupport/wechat/handler/admin/SignHandler.java +++ b/src/main/java/love/sola/netsupport/wechat/handler/admin/SignHandler.java @@ -1,3 +1,20 @@ +/* + * This file is part of WechatTicketSystem. + * + * WechatTicketSystem is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * WechatTicketSystem is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with WechatTicketSystem. If not, see . + */ + package love.sola.netsupport.wechat.handler.admin; import love.sola.netsupport.sql.SQLCore; diff --git a/src/main/java/love/sola/netsupport/wechat/matcher/CheckSpamMatcher.java b/src/main/java/love/sola/netsupport/wechat/matcher/CheckSpamMatcher.java index 1155b61..9467533 100644 --- a/src/main/java/love/sola/netsupport/wechat/matcher/CheckSpamMatcher.java +++ b/src/main/java/love/sola/netsupport/wechat/matcher/CheckSpamMatcher.java @@ -1,3 +1,20 @@ +/* + * This file is part of WechatTicketSystem. + * + * WechatTicketSystem is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * WechatTicketSystem is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with WechatTicketSystem. If not, see . + */ + package love.sola.netsupport.wechat.matcher; import com.google.common.cache.CacheBuilder; diff --git a/src/main/java/love/sola/netsupport/wechat/matcher/CommandMatcher.java b/src/main/java/love/sola/netsupport/wechat/matcher/CommandMatcher.java index a7763ef..f9fa701 100644 --- a/src/main/java/love/sola/netsupport/wechat/matcher/CommandMatcher.java +++ b/src/main/java/love/sola/netsupport/wechat/matcher/CommandMatcher.java @@ -1,3 +1,20 @@ +/* + * This file is part of WechatTicketSystem. + * + * WechatTicketSystem is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * WechatTicketSystem is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with WechatTicketSystem. If not, see . + */ + package love.sola.netsupport.wechat.matcher; import love.sola.netsupport.wechat.Command; diff --git a/src/main/java/love/sola/netsupport/wechat/matcher/RegisterMatcher.java b/src/main/java/love/sola/netsupport/wechat/matcher/RegisterMatcher.java index 12ef134..edea7a9 100644 --- a/src/main/java/love/sola/netsupport/wechat/matcher/RegisterMatcher.java +++ b/src/main/java/love/sola/netsupport/wechat/matcher/RegisterMatcher.java @@ -1,3 +1,20 @@ +/* + * This file is part of WechatTicketSystem. + * + * WechatTicketSystem is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * WechatTicketSystem is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with WechatTicketSystem. If not, see . + */ + package love.sola.netsupport.wechat.matcher; import love.sola.netsupport.sql.TableUser;