BTGO游戏盒 v3.4.80版本的 MD5 值为:000032bab1addaabfdc671ee6a7087ab
以下内容为反编译后的 a.java 源代码,内容仅作参考
package com.mobile.auth.u;
import android.content.Context;
import android.text.TextUtils;
import com.mobile.auth.gatewayauth.ExceptionProcessor;
import com.mobile.auth.gatewayauth.manager.RequestCallback;
import com.mobile.auth.gatewayauth.manager.a;
import com.mobile.auth.gatewayauth.manager.d;
import com.mobile.auth.gatewayauth.model.MonitorStruct;
import com.mobile.auth.gatewayauth.model.cucctoken.CUCCTokenRB;
import com.mobile.auth.z.b;
import com.nirvana.tools.core.ExecutorManager;
public class a extends com.mobile.auth.gatewayauth.manager.a {
private b f13678i;
public a(Context context, d dVar) {
super(context, dVar, "cu_xw", "opencloud.wostore.cn");
this.f13678i = b.a();
}
public static com.mobile.auth.q.a a(a aVar) {
try {
return aVar.f13290h;
} catch (Throwable th) {
try {
ExceptionProcessor.processException(th);
return null;
} catch (Throwable th2) {
ExceptionProcessor.processException(th2);
return null;
}
}
}
private synchronized void a(final RequestCallback<a.C0132a, com.mobile.auth.gatewayauth.manager.base.b> requestCallback, final MonitorStruct monitorStruct, final String str) {
try {
this.f13678i.a((int) this.f13285c, new com.mobile.auth.z.a() {
@Override
public void a(String str2) {
try {
monitorStruct.setCarrierReturnTime(System.currentTimeMillis());
a.a(a.this).a("cucc:", "getLoginInfo:", str2);
CUCCTokenRB cUCCTokenRB = null;
try {
if (!TextUtils.isEmpty(str2)) {
cUCCTokenRB = CUCCTokenRB.fromJson(str2);
}
} catch (Exception e10) {
a.b(a.this).e("CUCCValidManager init exception:", ExecutorManager.getErrorInfoFromException(e10));
}
if (cUCCTokenRB == null) {
a.a(a.this, requestCallback, "-10008", "JSON转换失败", str2, "cu_xw", monitorStruct, str);
return;
}
monitorStruct.setCarrierTraceId(cUCCTokenRB.getTraceId());
if (cUCCTokenRB.getResultCode() != 0 || cUCCTokenRB.getResultData() == null) {
a.c(a.this, requestCallback, String.valueOf(cUCCTokenRB.getResultCode()), cUCCTokenRB.getResultMsg(), str2, "cu_xw", monitorStruct, str);
return;
}
String mobile = cUCCTokenRB.getResultData().getMobile();
String accessCode = cUCCTokenRB.getResultData().getAccessCode();
long expires = cUCCTokenRB.getResultData().getExpires();
if (TextUtils.isEmpty(mobile) || TextUtils.isEmpty(accessCode)) {
a.b(a.this, requestCallback, String.valueOf(cUCCTokenRB.getResultCode()), cUCCTokenRB.getResultMsg(), str2, "cu_xw", monitorStruct, str);
return;
}
requestCallback.onSuccess(a.C0132a.a().a(mobile).c("联通统一认证服务条款").d("https://opencloud.wostore.cn/authz/resource/html/disclaimer.html?fromsdk=true").b(accessCode).a(System.currentTimeMillis() + (expires * 1000)).a());
monitorStruct.setAccessCode(accessCode);
monitorStruct.setPhoneNumber(mobile);
a.a(a.this, String.valueOf(cUCCTokenRB.getResultCode()), "", "", true, "cu_xw", monitorStruct);
} catch (Throwable th) {
try {
ExceptionProcessor.processException(th);
} catch (Throwable th2) {
ExceptionProcessor.processException(th2);
}
}
}
});
} catch (Throwable th) {
try {
ExceptionProcessor.processException(th);
} catch (Throwable th2) {
ExceptionProcessor.processException(th2);
}
}
}
public static void a(a aVar, RequestCallback requestCallback, String str, String str2, String str3, String str4, MonitorStruct monitorStruct, String str5) {
try {
aVar.a((RequestCallback<a.C0132a, com.mobile.auth.gatewayauth.manager.base.b>) requestCallback, str, str2, str3, str4, monitorStruct, str5);
} catch (Throwable th) {
try {
ExceptionProcessor.processException(th);
} catch (Throwable th2) {
ExceptionProcessor.processException(th2);
}
}
}
public static void a(a aVar, String str, String str2, String str3, boolean z10, String str4, MonitorStruct monitorStruct) {
try {
aVar.a(str, str2, str3, z10, str4, monitorStruct);
} catch (Throwable th) {
try {
ExceptionProcessor.processException(th);
} catch (Throwable th2) {
ExceptionProcessor.processException(th2);
}
}
}
public static com.mobile.auth.q.a b(a aVar) {
try {
return aVar.f13290h;
} catch (Throwable th) {
try {
ExceptionProcessor.processException(th);
return null;
} catch (Throwable th2) {
ExceptionProcessor.processException(th2);
return null;
}
}
}
public static void b(a aVar, RequestCallback requestCallback, String str, String str2, String str3, String str4, MonitorStruct monitorStruct, String str5) {
try {
aVar.a((RequestCallback<a.C0132a, com.mobile.auth.gatewayauth.manager.base.b>) requestCallback, str, str2, str3, str4, monitorStruct, str5);
} catch (Throwable th) {
try {
ExceptionProcessor.processException(th);
} catch (Throwable th2) {
ExceptionProcessor.processException(th2);
}
}
}
public static void b(a aVar, String str, String str2, String str3, boolean z10, String str4, MonitorStruct monitorStruct) {
try {
aVar.a(str, str2, str3, z10, str4, monitorStruct);
} catch (Throwable th) {
try {
ExceptionProcessor.processException(th);
} catch (Throwable th2) {
ExceptionProcessor.processException(th2);
}
}
}
public static com.mobile.auth.q.a c(a aVar) {
try {
return aVar.f13290h;
} catch (Throwable th) {
try {
ExceptionProcessor.processException(th);
return null;
} catch (Throwable th2) {
ExceptionProcessor.processException(th2);
return null;
}
}
}
public static void c(a aVar, RequestCallback requestCallback, String str, String str2, String str3, String str4, MonitorStruct monitorStruct, String str5) {
try {
aVar.a((RequestCallback<a.C0132a, com.mobile.auth.gatewayauth.manager.base.b>) requestCallback, str, str2, str3, str4, monitorStruct, str5);
} catch (Throwable th) {
try {
ExceptionProcessor.processException(th);
} catch (Throwable th2) {
ExceptionProcessor.processException(th2);
}
}
}
public static com.mobile.auth.q.a d(a aVar) {
try {
return aVar.f13290h;
} catch (Throwable th) {
try {
ExceptionProcessor.processException(th);
return null;
} catch (Throwable th2) {
ExceptionProcessor.processException(th2);
return null;
}
}
}
public static void d(a aVar, RequestCallback requestCallback, String str, String str2, String str3, String str4, MonitorStruct monitorStruct, String str5) {
try {
aVar.a((RequestCallback<a.C0132a, com.mobile.auth.gatewayauth.manager.base.b>) requestCallback, str, str2, str3, str4, monitorStruct, str5);
} catch (Throwable th) {
try {
ExceptionProcessor.processException(th);
} catch (Throwable th2) {
ExceptionProcessor.processException(th2);
}
}
}
public static void e(a aVar, RequestCallback requestCallback, String str, String str2, String str3, String str4, MonitorStruct monitorStruct, String str5) {
try {
aVar.a((RequestCallback<a.C0132a, com.mobile.auth.gatewayauth.manager.base.b>) requestCallback, str, str2, str3, str4, monitorStruct, str5);
} catch (Throwable th) {
try {
ExceptionProcessor.processException(th);
} catch (Throwable th2) {
ExceptionProcessor.processException(th2);
}
}
}
public static void f(a aVar, RequestCallback requestCallback, String str, String str2, String str3, String str4, MonitorStruct monitorStruct, String str5) {
try {
aVar.a((RequestCallback<a.C0132a, com.mobile.auth.gatewayauth.manager.base.b>) requestCallback, str, str2, str3, str4, monitorStruct, str5);
} catch (Throwable th) {
try {
ExceptionProcessor.processException(th);
} catch (Throwable th2) {
ExceptionProcessor.processException(th2);
}
}
}
@Override
public void a(String str, String str2) {
try {
super.a(str, str2);
this.f13678i.a(this.f13286d, str, str2);
} catch (Throwable th) {
try {
ExceptionProcessor.processException(th);
} catch (Throwable th2) {
ExceptionProcessor.processException(th2);
}
}
}
@Override
public void a(boolean z10) {
}
@Override
public String b(String str, String str2) {
try {
if (TextUtils.isEmpty(str)) {
return str;
}
char c10 = 65535;
switch (str.hashCode()) {
case 46730161:
if (str.equals("10000")) {
c10 = 0;
break;
}
break;
case 46730162:
if (str.equals("10001")) {
c10 = 1;
break;
}
break;
case 46730163:
if (str.equals("10002")) {
c10 = 2;
break;
}
break;
case 46730164:
if (str.equals("10003")) {
c10 = 3;
break;
}
break;
case 46730165:
if (str.equals("10004")) {
c10 = 4;
break;
}
break;
case 46730166:
if (str.equals("10005")) {
c10 = 5;
break;
}
break;
}
return c10 != 0 ? (c10 == 1 || c10 == 2) ? "600025" : (c10 == 3 || c10 == 4 || c10 == 5) ? "-10006" : str2 : "600015";
} catch (Throwable th) {
try {
ExceptionProcessor.processException(th);
return null;
} catch (Throwable th2) {
ExceptionProcessor.processException(th2);
return null;
}
}
}
@Override
public void c() {
}
@Override
public synchronized void d(RequestCallback<a.C0132a, com.mobile.auth.gatewayauth.manager.base.b> requestCallback, a.b bVar) {
try {
MonitorStruct monitorStruct = new MonitorStruct();
monitorStruct.putApiParam("timeout", String.valueOf(this.f13285c));
monitorStruct.setSessionId(bVar.c());
monitorStruct.setRequestId(bVar.b());
monitorStruct.setStartTime(System.currentTimeMillis());
monitorStruct.setAction("cucc.get.logincode");
monitorStruct.setUrgency(1);
monitorStruct.setNetworkType(com.mobile.auth.gatewayauth.utils.b.a(this.f13286d, true));
a(requestCallback, monitorStruct, "600012");
} catch (Throwable th) {
try {
ExceptionProcessor.processException(th);
} catch (Throwable th2) {
ExceptionProcessor.processException(th2);
}
}
}
@Override
public synchronized void e(final RequestCallback<a.C0132a, com.mobile.auth.gatewayauth.manager.base.b> requestCallback, a.b bVar) {
try {
MonitorStruct monitorStruct = new MonitorStruct();
monitorStruct.putApiParam("timeout", String.valueOf(this.f13285c));
monitorStruct.setSessionId(bVar.c());
monitorStruct.setRequestId(bVar.b());
monitorStruct.setStartTime(System.currentTimeMillis());
monitorStruct.setAction("cucc.get.logintoken");
monitorStruct.setNetworkType(com.mobile.auth.gatewayauth.utils.b.a(this.f13286d, true));
a(new RequestCallback<a.C0132a, com.mobile.auth.gatewayauth.manager.base.b>() {
public void a(a.C0132a c0132a) {
try {
requestCallback.onSuccess(c0132a);
} catch (Throwable th) {
try {
ExceptionProcessor.processException(th);
} catch (Throwable th2) {
ExceptionProcessor.processException(th2);
}
}
}
public void a(com.mobile.auth.gatewayauth.manager.base.b bVar2) {
try {
requestCallback.onError(bVar2);
} catch (Throwable th) {
try {
ExceptionProcessor.processException(th);
} catch (Throwable th2) {
ExceptionProcessor.processException(th2);
}
}
}
@Override
public void onError(com.mobile.auth.gatewayauth.manager.base.b bVar2) {
try {
a(bVar2);
} catch (Throwable th) {
try {
ExceptionProcessor.processException(th);
} catch (Throwable th2) {
ExceptionProcessor.processException(th2);
}
}
}
@Override
public void onSuccess(a.C0132a c0132a) {
try {
a(c0132a);
} catch (Throwable th) {
try {
ExceptionProcessor.processException(th);
} catch (Throwable th2) {
ExceptionProcessor.processException(th2);
}
}
}
}, monitorStruct, "600011");
} catch (Throwable th) {
try {
ExceptionProcessor.processException(th);
} catch (Throwable th2) {
ExceptionProcessor.processException(th2);
}
}
}
@Override
public synchronized void f(final RequestCallback<a.C0132a, com.mobile.auth.gatewayauth.manager.base.b> requestCallback, a.b bVar) {
try {
final MonitorStruct monitorStruct = new MonitorStruct();
monitorStruct.putApiParam("timeout", String.valueOf(this.f13285c));
monitorStruct.setSessionId(bVar.c());
monitorStruct.setRequestId(bVar.b());
monitorStruct.setStartTime(System.currentTimeMillis());
monitorStruct.setAction("cucc.getoken");
monitorStruct.setNetworkType(com.mobile.auth.gatewayauth.utils.b.a(this.f13286d, true));
this.f13678i.b((int) this.f13285c, new com.mobile.auth.z.a() {
@Override
public void a(String str) {
try {
monitorStruct.setCarrierReturnTime(System.currentTimeMillis());
a.c(a.this).a("cucc:", "getVerifyInfo:", str);
CUCCTokenRB cUCCTokenRB = null;
try {
if (!TextUtils.isEmpty(str)) {
cUCCTokenRB = CUCCTokenRB.fromJson(str);
}
} catch (Exception e10) {
a.d(a.this).e("CUCCValidManager init exception:", ExecutorManager.getErrorInfoFromException(e10));
}
if (cUCCTokenRB == null) {
a.d(a.this, requestCallback, "-10008", "JSON转换失败", str, "cu_xw", monitorStruct, "600011");
return;
}
monitorStruct.setCarrierTraceId(cUCCTokenRB.getTraceId());
if (cUCCTokenRB.getResultCode() != 0 || cUCCTokenRB.getResultData() == null) {
a.f(a.this, requestCallback, String.valueOf(cUCCTokenRB.getResultCode()), cUCCTokenRB.getResultMsg(), str, "cu_xw", monitorStruct, "600011");
return;
}
String accessCode = cUCCTokenRB.getResultData().getAccessCode();
long expires = cUCCTokenRB.getResultData().getExpires();
if (TextUtils.isEmpty(accessCode)) {
a.e(a.this, requestCallback, String.valueOf(cUCCTokenRB.getResultCode()), cUCCTokenRB.getResultMsg(), str, "cu_xw", monitorStruct, "600011");
return;
}
monitorStruct.setAccessCode(accessCode);
a.b(a.this, String.valueOf(cUCCTokenRB.getResultCode()), "", "", true, "cu_xw", monitorStruct);
requestCallback.onSuccess(a.C0132a.a().b(accessCode).a(System.currentTimeMillis() + (expires * 1000)).a());
} catch (Throwable th) {
try {
ExceptionProcessor.processException(th);
} catch (Throwable th2) {
ExceptionProcessor.processException(th2);
}
}
}
});
} catch (Throwable th) {
try {
ExceptionProcessor.processException(th);
} catch (Throwable th2) {
ExceptionProcessor.processException(th2);
}
}
}
}