Fix get bug

This commit is contained in:
FongMi 2023-01-31 16:41:17 +08:00
parent 0066eab0ca
commit 288b1f2665
5 changed files with 5 additions and 5 deletions

View File

@ -50,12 +50,12 @@ class OkRequest {
} }
private void getInstance() { private void getInstance() {
Request.Builder builder = new Request.Builder().url(url); Request.Builder builder = new Request.Builder();
if (method.equals(OkHttp.GET) && params != null) setParams(); if (method.equals(OkHttp.GET) && params != null) setParams();
if (method.equals(OkHttp.POST)) builder.post(getRequestBody()); if (method.equals(OkHttp.POST)) builder.post(getRequestBody());
if (header != null) for (String key : header.keySet()) builder.addHeader(key, header.get(key)); if (header != null) for (String key : header.keySet()) builder.addHeader(key, header.get(key));
if (tag != null) builder.tag(tag); if (tag != null) builder.tag(tag);
request = builder.build(); request = builder.url(url).build();
} }
private RequestBody getRequestBody() { private RequestBody getRequestBody() {

Binary file not shown.

View File

@ -1 +1 @@
fb25839a41ad3ce40356acf31920373c 85addabeb829c5815cdf69f9173b6e65

View File

@ -1,5 +1,5 @@
{ {
"spider": "https://gh-proxy.com/https://raw.githubusercontent.com/FongMi/CatVodSpider/main/jar/custom_spider.jar;md5;fb25839a41ad3ce40356acf31920373c", "spider": "https://gh-proxy.com/https://raw.githubusercontent.com/FongMi/CatVodSpider/main/jar/custom_spider.jar;md5;85addabeb829c5815cdf69f9173b6e65",
"wallpaper": "https://gao.chuqiuyu.tk", "wallpaper": "https://gao.chuqiuyu.tk",
"lives": [ "lives": [
{ {

View File

@ -1,5 +1,5 @@
{ {
"spider": "https://gh-proxy.com/https://raw.githubusercontent.com/FongMi/CatVodSpider/main/jar/custom_spider.jar;md5;fb25839a41ad3ce40356acf31920373c", "spider": "https://gh-proxy.com/https://raw.githubusercontent.com/FongMi/CatVodSpider/main/jar/custom_spider.jar;md5;85addabeb829c5815cdf69f9173b6e65",
"wallpaper": "http://www.kf666888.cn/api/tvbox/img", "wallpaper": "http://www.kf666888.cn/api/tvbox/img",
"lives": [ "lives": [
{ {