Support proxy

This commit is contained in:
FongMi 2023-09-24 16:01:11 +08:00
parent 448b53c614
commit 416dfa82e5
5 changed files with 14 additions and 10 deletions

View File

@ -62,11 +62,15 @@ public class OkHttp {
}
public static String post(String url, Map<String, String> params) {
return post(url, params, null).getBody();
return post(client(), url, params, null).getBody();
}
public static OkResult post(String url, Map<String, String> params, Map<String, String> header) {
return new OkRequest(POST, url, params, header).execute(client());
return post(client(), url, params, header);
}
public static OkResult post(OkHttpClient client, String url, Map<String, String> params, Map<String, String> header) {
return new OkRequest(POST, url, params, header).execute(client);
}
public static String post(String url, String json) {
@ -74,7 +78,11 @@ public class OkHttp {
}
public static OkResult post(String url, String json, Map<String, String> header) {
return new OkRequest(POST, url, json, header).execute(client());
return post(client(), url, json, header);
}
public static OkResult post(OkHttpClient client, String url, String json, Map<String, String> header) {
return new OkRequest(POST, url, json, header).execute(client);
}
public static String getLocation(String url, Map<String, String> header) throws IOException {

Binary file not shown.

View File

@ -1 +1 @@
845b3fd9e045365ca63526a8fd06dc2d
5931706b319f6cb041b667eeed890608

View File

@ -1,5 +1,5 @@
{
"spider": "https://fongmi.cachefly.net/FongMi/CatVodSpider/main/jar/custom_spider.jar;md5;845b3fd9e045365ca63526a8fd06dc2d",
"spider": "https://fongmi.cachefly.net/FongMi/CatVodSpider/main/jar/custom_spider.jar;md5;5931706b319f6cb041b667eeed890608",
"wallpaper": "https://gao.chuqiuyu.tk",
"sites": [
{
@ -66,7 +66,6 @@
"type": 3,
"api": "csp_Eighteen",
"searchable": 1,
"proxy": true,
"style": {
"type": "rect",
"ratio": 1.485
@ -78,7 +77,6 @@
"type": 3,
"api": "csp_Jable",
"searchable": 1,
"proxy": true,
"style": {
"type": "rect",
"ratio": 1.77
@ -90,7 +88,6 @@
"type": 3,
"api": "csp_Miss",
"searchable": 1,
"proxy": true,
"style": {
"type": "rect",
"ratio": 1.777
@ -102,7 +99,6 @@
"type": 3,
"api": "csp_Hanime",
"searchable": 1,
"proxy": true,
"style": {
"type": "rect",
"ratio": 0.68

View File

@ -1,5 +1,5 @@
{
"spider": "https://fongmi.cachefly.net/FongMi/CatVodSpider/main/jar/custom_spider.jar;md5;845b3fd9e045365ca63526a8fd06dc2d",
"spider": "https://fongmi.cachefly.net/FongMi/CatVodSpider/main/jar/custom_spider.jar;md5;5931706b319f6cb041b667eeed890608",
"wallpaper": "http://饭太硬.top/深色壁纸/api.php",
"sites": [
{