remove OAuth2, add new block

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

View File

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

View File

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

View File

@@ -1,6 +1,9 @@
#System Exception #System Exception
Access_Denied: 'Access denied.' Access_Denied: 'Access denied.'
Illegal_Request: "Access denied.\nYou are doing a illegal request, and our system has logged your behaviors.\nYou need to take this seriously, if you do this frequently, you may be banned from our system." Illegal_Request: |
Access denied.
You are doing an illegal request, and our system has logged your behaviors.
You have to take this seriously, you may be banned from our system if you do this frequently.
Unknown_Encrypt_Type: 'Unknown encrypt-type.' Unknown_Encrypt_Type: 'Unknown encrypt-type.'
#Command Regex #Command Regex

View File

@@ -19,24 +19,9 @@
"key": "CANCEL" "key": "CANCEL"
}, },
{ {
"type": "view", "type": "click",
"name": "修改资料", "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=PROFILE#wechat_redirect" "key": "PROFILE"
}
]
},
{
"name": "工具箱",
"sub_button": [
{
"type": "view",
"name": "电信宽带查余额",
"url": "http://util.sola.love/yue.html"
},
{
"type": "view",
"name": "四六级成绩查询",
"url": "http://util.sola.love/cet.html"
} }
] ]
}, },
@@ -49,14 +34,9 @@
"key": "OPERATOR_INFO" "key": "OPERATOR_INFO"
}, },
{ {
"type": "view", "type": "click",
"name": "后台登录", "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" "key": "LOGIN"
},
{
"type": "view",
"name": "网维留言板",
"url": "http://wcs.sola.love/oauth2/go"
} }
] ]
} }

View File

@@ -19,35 +19,15 @@
"key": "CANCEL" "key": "CANCEL"
}, },
{ {
"type": "view", "type": "click",
"name": "修改资料", "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=PROFILE#wechat_redirect" "key": "PROFILE"
}
]
},
{
"name": "工具箱",
"sub_button": [
{
"type": "view",
"name": "电信宽带查余额",
"url": "http://util.sola.love/yue.html"
},
{
"type": "view",
"name": "四六级成绩查询",
"url": "http://util.sola.love/cet.html"
} }
] ]
}, },
{ {
"name": "关于网维", "name": "关于网维",
"sub_button": [ "sub_button": [
{
"type": "view",
"name": "网维留言板",
"url": "http://wcs.sola.love/oauth2/go"
},
{ {
"type": "view", "type": "view",
"name": "关于报修系统", "name": "关于报修系统",