正在查看: 95爱播免登录版 v3.1.9 应用的 d.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: 95爱播免登录版 v3.1.9 应用的 d.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.mobile.auth.c;
import android.content.Context;
import android.text.TextUtils;
import com.mobile.auth.b.f;
import com.mobile.auth.d.i;
import java.net.URLEncoder;
import java.util.Iterator;
import java.util.List;
import java.util.Queue;
import java.util.concurrent.ConcurrentLinkedQueue;
import org.json.JSONArray;
import org.json.JSONObject;
public class d {
private static final String a = "d";
private static final byte[] b = {15, 31, 94, 10, 90, 15, 91, 24, 10, 30, 88, 7, 89, 10, 95, 30};
static String a(Context context, Queue queue) {
try {
return b(context, (Queue<String>) queue);
} catch (Throwable th) {
com.mobile.auth.gatewayauth.a.a(th);
return null;
}
}
static Queue a(Context context, List list, int i2) {
try {
return c(context, list, i2);
} catch (Throwable th) {
com.mobile.auth.gatewayauth.a.a(th);
return null;
}
}
static void a(Context context) {
try {
c(context);
} catch (Throwable th) {
com.mobile.auth.gatewayauth.a.a(th);
}
}
private static void a(Context context, int i2) {
try {
try {
com.mobile.auth.d.b.a(context, "key_c_l_l_v", i2);
} catch (Exception e2) {
e2.printStackTrace();
}
} catch (Throwable th) {
com.mobile.auth.gatewayauth.a.a(th);
}
}
public static void a(android.content.Context r6, java.lang.String r7) {
throw new UnsupportedOperationException("Method not decompiled: com.mobile.auth.c.d.a(android.content.Context, java.lang.String):void");
}
public static void a(Context context, List<String> list) {
try {
int b2 = b(context);
if (b2 == -2) {
return;
}
b(context, list, b2);
} catch (Throwable th) {
com.mobile.auth.gatewayauth.a.a(th);
}
}
static void a(Context context, Queue queue, int i2) {
try {
b(context, (Queue<String>) queue, i2);
} catch (Throwable th) {
com.mobile.auth.gatewayauth.a.a(th);
}
}
private static int b(Context context) {
try {
return com.mobile.auth.d.b.b(context, "key_c_l_l_v", 0);
} catch (Throwable th) {
try {
th.printStackTrace();
return 0;
} catch (Throwable th2) {
com.mobile.auth.gatewayauth.a.a(th2);
return -1;
}
}
}
private static String b(Context context, String str) {
try {
return a.a(context, "https://collect.ux.21cn.com/collect/custom/accountMsg", str);
} catch (Throwable th) {
com.mobile.auth.gatewayauth.a.a(th);
return null;
}
}
private static String b(Context context, Queue<String> queue) {
try {
JSONArray jSONArray = new JSONArray();
String jSONArray2 = jSONArray.toString();
if (!queue.isEmpty()) {
Iterator<String> it = queue.iterator();
while (it.hasNext()) {
try {
jSONArray.put(new JSONObject(it.next()));
} catch (Exception e2) {
e2.printStackTrace();
}
}
}
if (jSONArray.length() <= 0) {
return "";
}
String jSONArray3 = jSONArray.toString();
if (!TextUtils.isEmpty(jSONArray3)) {
try {
jSONArray2 = URLEncoder.encode(com.mobile.auth.b.b.a(com.mobile.auth.b.a.b(jSONArray3, f.a(b))), "UTF-8");
} catch (Exception e3) {
e3.printStackTrace();
}
}
return b(context, jSONArray2);
} catch (Throwable th) {
com.mobile.auth.gatewayauth.a.a(th);
return null;
}
}
private static void b(final Context context, final List<String> list, final int i2) {
try {
i.a(new Runnable() {
@Override
public void run() {
try {
Queue a2 = d.a(context, list, i2);
if (a2.isEmpty()) {
return;
}
String a3 = d.a(context, a2);
JSONObject jSONObject = null;
int i3 = -1;
try {
if (!TextUtils.isEmpty(a3)) {
JSONObject jSONObject2 = new JSONObject(a3);
try {
i3 = jSONObject2.getInt("code");
jSONObject = jSONObject2;
} catch (Exception e2) {
e = e2;
jSONObject = jSONObject2;
e.printStackTrace();
if (jSONObject != null) {
}
d.a(context, a2, i2);
}
}
} catch (Exception e3) {
e = e3;
}
if (jSONObject != null || i3 != 0) {
d.a(context, a2, i2);
} else {
d.a(context);
a2.clear();
}
} catch (Throwable th) {
try {
th.printStackTrace();
} catch (Throwable th2) {
com.mobile.auth.gatewayauth.a.a(th2);
}
}
}
});
} catch (Throwable th) {
com.mobile.auth.gatewayauth.a.a(th);
}
}
private static void b(Context context, Queue<String> queue, int i2) {
JSONObject jSONObject;
try {
String str = "";
JSONArray jSONArray = new JSONArray();
if (queue != null && !queue.isEmpty()) {
Iterator<String> it = queue.iterator();
int i3 = 0;
while (it.hasNext()) {
try {
jSONObject = new JSONObject(it.next());
} catch (Exception e2) {
e2.printStackTrace();
}
if (i2 != -1 || jSONObject.getInt("rt") != 0) {
jSONArray.put(jSONObject);
i3++;
if (i3 > 10) {
break;
}
}
}
}
if (jSONArray.length() > 0) {
try {
str = com.mobile.auth.b.a.a(jSONArray.toString(), f.a(b));
} catch (Exception e3) {
str = null;
e3.printStackTrace();
}
}
if (TextUtils.isEmpty(str)) {
return;
}
c.a(context, str);
} catch (Throwable th) {
com.mobile.auth.gatewayauth.a.a(th);
}
}
private static synchronized Queue<String> c(Context context, List<String> list, int i2) {
ConcurrentLinkedQueue concurrentLinkedQueue;
synchronized (d.class) {
try {
concurrentLinkedQueue = new ConcurrentLinkedQueue();
String a2 = c.a(context);
if (!TextUtils.isEmpty(a2)) {
try {
JSONArray jSONArray = new JSONArray(com.mobile.auth.b.a.c(a2, f.a(b)));
int length = jSONArray.length();
for (int i3 = 0; i3 < length && i3 <= 10; i3++) {
JSONObject jSONObject = jSONArray.getJSONObject(i3);
if (jSONObject != null) {
concurrentLinkedQueue.add(jSONObject.toString());
}
}
c.a(context, "");
} catch (Exception e2) {
e2.printStackTrace();
}
}
if (i2 == -1) {
for (String str : list) {
try {
if (new JSONObject(str).getInt("rt") != 0) {
concurrentLinkedQueue.add(str);
}
} catch (Exception e3) {
e3.printStackTrace();
}
}
} else if (i2 == 0) {
concurrentLinkedQueue.addAll(list);
}
while (concurrentLinkedQueue.size() > 10) {
concurrentLinkedQueue.poll();
}
} catch (Throwable th) {
com.mobile.auth.gatewayauth.a.a(th);
return null;
}
}
return concurrentLinkedQueue;
}
private static void c(Context context) {
try {
c.a(context, "");
} catch (Throwable th) {
com.mobile.auth.gatewayauth.a.a(th);
}
}
}