Clean code
This commit is contained in:
parent
97d70ec827
commit
64fe667a09
|
|
@ -2,7 +2,6 @@ package com.github.catvod.net;
|
|||
|
||||
import android.text.TextUtils;
|
||||
|
||||
import com.github.catvod.crawler.SpiderDebug;
|
||||
import com.github.catvod.utils.Utils;
|
||||
|
||||
import java.io.IOException;
|
||||
|
|
@ -77,12 +76,8 @@ class OkRequest {
|
|||
Response response = client.newCall(request).execute();
|
||||
if (respHeader != null) respHeader.clear();
|
||||
if (respHeader != null) respHeader.putAll(response.headers().toMultimap());
|
||||
int code = response.code();
|
||||
String body = response.body().string();
|
||||
SpiderDebug.log(code + "," + body);
|
||||
return new OkResult(code, body);
|
||||
return new OkResult(response.code(), response.body().string());
|
||||
} catch (IOException e) {
|
||||
SpiderDebug.log(e);
|
||||
return new OkResult();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Binary file not shown.
|
|
@ -1 +1 @@
|
|||
9a8ad560e957f4016cf6553605039491
|
||||
dede7a67d11523b79d649c152910fd6a
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"spider": "https://fongmi.cachefly.net/FongMi/CatVodSpider/main/jar/custom_spider.jar;md5;9a8ad560e957f4016cf6553605039491",
|
||||
"spider": "https://fongmi.cachefly.net/FongMi/CatVodSpider/main/jar/custom_spider.jar;md5;dede7a67d11523b79d649c152910fd6a",
|
||||
"wallpaper": "https://gao.chuqiuyu.tk",
|
||||
"sites": [
|
||||
{
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"spider": "https://fongmi.cachefly.net/FongMi/CatVodSpider/main/jar/custom_spider.jar;md5;9a8ad560e957f4016cf6553605039491",
|
||||
"spider": "https://fongmi.cachefly.net/FongMi/CatVodSpider/main/jar/custom_spider.jar;md5;dede7a67d11523b79d649c152910fd6a",
|
||||
"wallpaper": "http://饭太硬.top/深色壁纸/api.php",
|
||||
"sites": [
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue