Skip to content

Commit

Permalink
Update XiaoyaProxyHandler.java
Browse files Browse the repository at this point in the history
  • Loading branch information
zengge99 authored Jul 19, 2024
1 parent ef7c5a9 commit 5c87dbb
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package com.github.catvod.spider;

import com.github.catvod.net.OkHttp;
import android.content.Context;

import java.io.ByteArrayInputStream;
Expand Down Expand Up @@ -29,6 +28,8 @@
import java.net.URL;
import okhttp3.OkHttpClient;
import okhttp3.Dispatcher;
import okhttp3.FormBody;
import okhttp3.RequestBody;
import org.json.JSONObject;
import java.util.HashMap;
import okhttp3.Call;
Expand Down Expand Up @@ -334,7 +335,7 @@ private void getQuarkLink(String url, Map<String, String> headers) {
RequestBody requestBody = formBody.build();
Request request = new Request.Builder().post(requestBody).url(alistApi).build();
Response response = new OkHttpClient.Builder().build().newCall(request).execute();
JSONObject object = new JSONObject(response.body().text());
JSONObject object = new JSONObject(response.body().string());
String data = object.getString("data");
object = new JSONObject(data);
cookie = object.getString("cookie");
Expand Down

0 comments on commit 5c87dbb

Please sign in to comment.