柬埔寨通 v6.1.5版本的 MD5 值为:9b68581ac30883219d6a25858a099d6b
以下内容为反编译后的 a.java 源代码,内容仅作参考
package com.mobile.auth.q;
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.v.b;
import com.nirvana.tools.core.ExecutorManager;
public class a extends com.mobile.auth.gatewayauth.manager.a {
private b i;
public a(Context context, d dVar) {
super(context, dVar, "cu_xw", "opencloud.wostore.cn");
this.i = b.a();
}
static com.mobile.auth.m.a a(a aVar) {
try {
return aVar.h;
} catch (Throwable th) {
try {
ExceptionProcessor.processException(th);
return null;
} catch (Throwable th2) {
ExceptionProcessor.processException(th2);
return null;
}
}
}
private synchronized void a(final RequestCallback<a.C0116a, com.mobile.auth.gatewayauth.manager.base.b> requestCallback, final MonitorStruct monitorStruct, final String str) {
try {
this.i.a((int) this.c, new com.mobile.auth.v.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 e) {
a.b(a.this).e("CUCCValidManager init exception:", ExecutorManager.getErrorInfoFromException(e));
}
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.C0116a.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);
}
}
}
static void a(a aVar, RequestCallback requestCallback, String str, String str2, String str3, String str4, MonitorStruct monitorStruct, String str5) {
try {
aVar.a((RequestCallback<a.C0116a, 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);
}
}
}
static void a(a aVar, String str, String str2, String str3, boolean z, String str4, MonitorStruct monitorStruct) {
try {
aVar.a(str, str2, str3, z, str4, monitorStruct);
} catch (Throwable th) {
try {
ExceptionProcessor.processException(th);
} catch (Throwable th2) {
ExceptionProcessor.processException(th2);
}
}
}
static com.mobile.auth.m.a b(a aVar) {
try {
return aVar.h;
} catch (Throwable th) {
try {
ExceptionProcessor.processException(th);
return null;
} catch (Throwable th2) {
ExceptionProcessor.processException(th2);
return null;
}
}
}
static void b(a aVar, RequestCallback requestCallback, String str, String str2, String str3, String str4, MonitorStruct monitorStruct, String str5) {
try {
aVar.a((RequestCallback<a.C0116a, 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);
}
}
}
static void b(a aVar, String str, String str2, String str3, boolean z, String str4, MonitorStruct monitorStruct) {
try {
aVar.a(str, str2, str3, z, str4, monitorStruct);
} catch (Throwable th) {
try {
ExceptionProcessor.processException(th);
} catch (Throwable th2) {
ExceptionProcessor.processException(th2);
}
}
}
static com.mobile.auth.m.a c(a aVar) {
try {
return aVar.h;
} catch (Throwable th) {
try {
ExceptionProcessor.processException(th);
return null;
} catch (Throwable th2) {
ExceptionProcessor.processException(th2);
return null;
}
}
}
static void c(a aVar, RequestCallback requestCallback, String str, String str2, String str3, String str4, MonitorStruct monitorStruct, String str5) {
try {
aVar.a((RequestCallback<a.C0116a, 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);
}
}
}
static com.mobile.auth.m.a d(a aVar) {
try {
return aVar.h;
} catch (Throwable th) {
try {
ExceptionProcessor.processException(th);
return null;
} catch (Throwable th2) {
ExceptionProcessor.processException(th2);
return null;
}
}
}
static void d(a aVar, RequestCallback requestCallback, String str, String str2, String str3, String str4, MonitorStruct monitorStruct, String str5) {
try {
aVar.a((RequestCallback<a.C0116a, 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);
}
}
}
static void e(a aVar, RequestCallback requestCallback, String str, String str2, String str3, String str4, MonitorStruct monitorStruct, String str5) {
try {
aVar.a((RequestCallback<a.C0116a, 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);
}
}
}
static void f(a aVar, RequestCallback requestCallback, String str, String str2, String str3, String str4, MonitorStruct monitorStruct, String str5) {
try {
aVar.a((RequestCallback<a.C0116a, 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.i.a(this.d, str, str2);
} catch (Throwable th) {
try {
ExceptionProcessor.processException(th);
} catch (Throwable th2) {
ExceptionProcessor.processException(th2);
}
}
}
@Override
public void a(boolean z) {
}
@Override
public String b(String str, String str2) {
try {
if (TextUtils.isEmpty(str)) {
return str;
}
char c = 65535;
switch (str.hashCode()) {
case 46730161:
if (str.equals("10000")) {
c = 0;
break;
}
break;
case 46730162:
if (str.equals("10001")) {
c = 1;
break;
}
break;
case 46730163:
if (str.equals("10002")) {
c = 2;
break;
}
break;
case 46730164:
if (str.equals("10003")) {
c = 3;
break;
}
break;
case 46730165:
if (str.equals("10004")) {
c = 4;
break;
}
break;
case 46730166:
if (str.equals("10005")) {
c = 5;
break;
}
break;
}
return c != 0 ? (c == 1 || c == 2) ? "600025" : (c == 3 || c == 4 || c == 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.C0116a, com.mobile.auth.gatewayauth.manager.base.b> requestCallback, a.b bVar) {
try {
MonitorStruct monitorStruct = new MonitorStruct();
monitorStruct.putApiParam("timeout", String.valueOf(this.c));
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.d, 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.C0116a, com.mobile.auth.gatewayauth.manager.base.b> requestCallback, a.b bVar) {
try {
MonitorStruct monitorStruct = new MonitorStruct();
monitorStruct.putApiParam("timeout", String.valueOf(this.c));
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.d, true));
a(new RequestCallback<a.C0116a, com.mobile.auth.gatewayauth.manager.base.b>() {
public void a(a.C0116a c0116a) {
try {
requestCallback.onSuccess(c0116a);
} 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.C0116a c0116a) {
try {
a(c0116a);
} 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.C0116a, com.mobile.auth.gatewayauth.manager.base.b> requestCallback, a.b bVar) {
try {
final MonitorStruct monitorStruct = new MonitorStruct();
monitorStruct.putApiParam("timeout", String.valueOf(this.c));
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.d, true));
this.i.b((int) this.c, new com.mobile.auth.v.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 e) {
a.d(a.this).e("CUCCValidManager init exception:", ExecutorManager.getErrorInfoFromException(e));
}
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.C0116a.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);
}
}
}
}