Skip to content

Commit

Permalink
fix: xiaoya proxy data is not a string
Browse files Browse the repository at this point in the history
  • Loading branch information
DDSRem committed Aug 15, 2024
1 parent f891d7c commit e6e98c6
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -335,10 +335,9 @@ private void getQuarkLink(String url, Map<String, String> headers) {
Request request = requestBuilder.build();
Response response = defaultClient.newCall(request).execute();
JSONObject object = new JSONObject(response.body().string());
String data = object.getString("data");
object = new JSONObject(data);
cookie = object.getString("cookie");
String location = object.getString("download_link");
JSONObject dataObject = object.getJSONObject("data");
cookie = dataObject.getString("cookie");
String location = dataObject.getString("download_link");
location = unescapeUnicode(location);
if(location != null && cookie != null && !location.isEmpty() && !cookie.isEmpty()){
QurakLinkCacheInfo var = new QurakLinkCacheInfo();
Expand Down

0 comments on commit e6e98c6

Please sign in to comment.