|
@@ -60,52 +60,55 @@ public class GeneralJob {
|
|
|
Map<String,Object> map = new HashMap<>();
|
|
|
map.put("email","351550660@qq.com");
|
|
|
map.put("passwd","Lin123456");
|
|
|
- HttpResponse resp = HttpRequest.post("https://chyvpn.cyou/auth/login").form(map).timeout(-1).execute();
|
|
|
+ HttpResponse resp = HttpRequest.post("https://chynet01.azureedge.net/auth/login").form(map).timeout(-1).execute();
|
|
|
String key = resp.getCookie("key").toString();
|
|
|
String expire_in = resp.getCookie("expire_in").toString();
|
|
|
String cookie = "cookie:PHPSESSID=fun75tna6st563e78799552e69; cnxad_lunbo=yes; crisp-client%2Fsession%2F7850791f-bbe4-4874-9f05-c9dea3c63595=session_8a49d3eb-e9c7-43f8-9fe9-12d1560a4122; crisp-client%2Fsession%2F7850791f-bbe4-4874-9f05-c9dea3c63595%2Fc89170bf-a23d-3152-9ad4-fda9810011f7=session_8a49d3eb-e9c7-43f8-9fe9-12d1560a4122; uid=14105; email=351550660%40qq.com; ip=5f0f60145ce69c8054af6bb0a24e9c1a;"+key+"; "+expire_in;
|
|
|
- String ret = HttpRequest.post("https://chyvpn.cyou/user/checkin").cookie(cookie).timeout(-1).execute().body();
|
|
|
+ String ret = HttpRequest.post("https://chynet01.azureedge.net/user/checkin").cookie(cookie).timeout(-1).execute().body();
|
|
|
logger.error("[checkin]:"+ret);
|
|
|
|
|
|
- map = new HashMap<>();
|
|
|
- map.put("email","yyjt1987@126.com");
|
|
|
- map.put("passwd","12345qaz");
|
|
|
- resp = HttpRequest.post("https://chyvpn.cyou/auth/login").form(map).timeout(-1).execute();
|
|
|
- key = resp.getCookie("key").toString();
|
|
|
- expire_in = resp.getCookie("expire_in").toString();
|
|
|
- cookie = "cookie:PHPSESSID=fun75tna6st563e78799552e69; cnxad_lunbo=yes; crisp-client%2Fsession%2F7850791f-bbe4-4874-9f05-c9dea3c63595=session_8a49d3eb-e9c7-43f8-9fe9-12d1560a4122; crisp-client%2Fsession%2F7850791f-bbe4-4874-9f05-c9dea3c63595%2Fc89170bf-a23d-3152-9ad4-fda9810011f7=session_8a49d3eb-e9c7-43f8-9fe9-12d1560a4122; uid=14105; email=351550660%40qq.com; ip=5f0f60145ce69c8054af6bb0a24e9c1a;"+key+"; "+expire_in;
|
|
|
- ret = HttpRequest.post("https://chyvpn.cyou/user/checkin").cookie(cookie).timeout(-1).execute().body();
|
|
|
- logger.error("[checkin]:"+ret);
|
|
|
|
|
|
|
|
|
- JSONObject json = new JSONObject();
|
|
|
- json.put("username","linxinkai");
|
|
|
- json.put("password","Lin123456");
|
|
|
- String ret2 = HttpUtil.post("https://c4.a0.chat/v1/user/login/",json.toString());
|
|
|
- String token = JSONUtil.parseObj(ret2).getJSONObject("data").getStr("token");
|
|
|
- json = new JSONObject();
|
|
|
- json.put("action","sign_today");
|
|
|
- ret = HttpRequest.post("https://c4.a0.chat/v1/user/info/").body(json.toString()).header("Authorization",token).timeout(-1).execute().body();
|
|
|
- logger.error("[checkin]:"+ret);
|
|
|
+// JSONObject json = new JSONObject();
|
|
|
+// json.put("username","linxinkai");
|
|
|
+// json.put("password","Lin123456");
|
|
|
+// String ret2 = HttpUtil.post("https://c4.a0.chat/v1/user/login/",json.toString());
|
|
|
+// String token = JSONUtil.parseObj(ret2).getJSONObject("data").getStr("token");
|
|
|
+// json = new JSONObject();
|
|
|
+// json.put("action","sign_today");
|
|
|
+// ret = HttpRequest.post("https://c4.a0.chat/v1/user/info/").body(json.toString()).header("Authorization",token).timeout(-1).execute().body();
|
|
|
+// logger.error("[checkin]:"+ret);
|
|
|
|
|
|
return ReturnT.SUCCESS;
|
|
|
}
|
|
|
|
|
|
+
|
|
|
+
|
|
|
public static void main(String[] args) {
|
|
|
- int quhao = 154;
|
|
|
- int weihao = 9642;
|
|
|
- String a = Hex.encodeHexString( new byte[] {(byte)((quhao>>8)&0x00FF),(byte)(quhao&0x00FF),(byte)((weihao>>8)&0x00FF),(byte)(weihao&0x00FF)});
|
|
|
- System.out.println(a);
|
|
|
-
|
|
|
- String b = Hex.encodeHexString( new byte[] {(byte)((quhao>>8)&0x00FF),(byte)(quhao&0x00FF)});
|
|
|
- System.out.println(b);
|
|
|
- String hex = "009a25aa";
|
|
|
- int decimal = Integer.parseInt(hex, 16);
|
|
|
- System.out.println(decimal); // 输出:2571
|
|
|
- String str = String.format("%09d", decimal);
|
|
|
- System.out.println(str); // 输出:2571
|
|
|
- System.out.println(str.substring(0,6)); // 输出:2571
|
|
|
- System.out.println(str.substring(6)); // 输出:2571
|
|
|
+// int quhao = 154;
|
|
|
+// int weihao = 9642;
|
|
|
+// String a = Hex.encodeHexString( new byte[] {(byte)((quhao>>8)&0x00FF),(byte)(quhao&0x00FF),(byte)((weihao>>8)&0x00FF),(byte)(weihao&0x00FF)});
|
|
|
+// System.out.println(a);
|
|
|
+//
|
|
|
+// String b = Hex.encodeHexString( new byte[] {(byte)((quhao>>8)&0x00FF),(byte)(quhao&0x00FF)});
|
|
|
+// System.out.println(b);
|
|
|
+// String hex = "009a25aa";
|
|
|
+// int decimal = Integer.parseInt(hex, 16);
|
|
|
+// System.out.println(decimal); // 输出:2571
|
|
|
+// String str = String.format("%09d", decimal);
|
|
|
+// System.out.println(str); // 输出:2571
|
|
|
+// System.out.println(str.substring(0,6)); // 输出:2571
|
|
|
+// System.out.println(str.substring(6)); // 输出:2571
|
|
|
+
|
|
|
+ Map<String,Object> map = new HashMap<>();
|
|
|
+ map.put("email","351550660@qq.com");
|
|
|
+ map.put("passwd","Lin123456");
|
|
|
+ HttpResponse resp = HttpRequest.post("https://chynet01.azureedge.net/auth/login").form(map).timeout(-1).execute();
|
|
|
+ String key = resp.getCookie("key").toString();
|
|
|
+ String expire_in = resp.getCookie("expire_in").toString();
|
|
|
+ String cookie = "cookie:PHPSESSID=fun75tna6st563e78799552e69; cnxad_lunbo=yes; crisp-client%2Fsession%2F7850791f-bbe4-4874-9f05-c9dea3c63595=session_8a49d3eb-e9c7-43f8-9fe9-12d1560a4122; crisp-client%2Fsession%2F7850791f-bbe4-4874-9f05-c9dea3c63595%2Fc89170bf-a23d-3152-9ad4-fda9810011f7=session_8a49d3eb-e9c7-43f8-9fe9-12d1560a4122; uid=14105; email=351550660%40qq.com; ip=5f0f60145ce69c8054af6bb0a24e9c1a;"+key+"; "+expire_in;
|
|
|
+ String ret = HttpRequest.post("https://chynet01.azureedge.net/user/checkin").cookie(cookie).timeout(-1).execute().body();
|
|
|
+ logger.error("[checkin]:"+ret);
|
|
|
}
|
|
|
|
|
|
|