FLIX VISION v2.8.2版本的 MD5 值为:4d33b143293b36f23ce5a6a5834e6993
以下内容为反编译后的 e.java 源代码,内容仅作参考
package fa;
import android.content.Context;
import android.content.SharedPreferences;
import flix.com.vision.App;
import flix.com.vision.api.realdebrid.RealDebridCommon;
import java.io.IOException;
import java.util.Objects;
import okhttp3.Call;
import okhttp3.Callback;
import okhttp3.FormBody;
import okhttp3.OkHttpClient;
import okhttp3.Request;
import okhttp3.Response;
import okhttp3.ResponseBody;
import org.json.JSONArray;
import org.json.JSONObject;
public final class e {
public static SharedPreferences f11639a;
public static String f11640b;
public static String f11641c;
public static String f11642d;
public class a implements Callback {
@Override
public void onFailure(Call call, IOException iOException) {
iOException.printStackTrace();
}
@Override
public void onResponse(Call call, Response response) throws IOException {
if (response.isSuccessful()) {
ResponseBody body = response.body();
Objects.requireNonNull(body);
String string = body.string();
StringBuilder sb2 = new StringBuilder("{\n \"results\": [");
String str = RealDebridCommon.f12030b;
try {
JSONArray jSONArray = new JSONObject(a.b.n(sb2, string, "]\n}")).getJSONArray("results");
for (int i10 = 0; i10 < jSONArray.length(); i10++) {
JSONObject jSONObject = jSONArray.getJSONObject(i10);
RealDebridCommon.f12030b = jSONObject.getString("access_token");
e.f11640b = jSONObject.getString("refresh_token");
RealDebridCommon.f12032h = jSONObject.getString("token_type");
}
e.f11639a.edit().putString("ACCESS_TOKEN", RealDebridCommon.f12030b).apply();
e.f11639a.edit().putString("REFRESH_TOKEN", e.f11640b).apply();
e.f11639a.edit().putString("TOKEN_TYPE", RealDebridCommon.f12032h).apply();
e.f11639a.edit().putBoolean("IS_RD_LOGGED_IN", true).apply();
RealDebridCommon.f12034j = true;
} catch (Exception e10) {
e10.printStackTrace();
}
}
}
}
public e(Context context) {
SharedPreferences sharedPreferences = App.getInstance().f11732q;
f11639a = sharedPreferences;
f11640b = sharedPreferences.getString("REFRESH_TOKEN", null);
f11641c = f11639a.getString("CLIENT_ID", null);
f11642d = f11639a.getString("CLIENT_SECRET", null);
f11639a.getString("DEVICE_CODE", null);
}
public static String Do_Async() {
new OkHttpClient().newCall(new Request.Builder().header("User-Agent", RealDebridCommon.f12038n).url(RealDebridCommon.f12037m).post(new FormBody.Builder().add("client_id", f11641c).add("client_secret", f11642d).add("code", f11640b).add("grant_type", "http://oauth.net/grant_type/device/1.0").build()).build()).enqueue(new a());
return RealDebridCommon.f12030b;
}
}