柬埔寨通 v6.1.5版本的 MD5 值为:9b68581ac30883219d6a25858a099d6b
以下内容为反编译后的 d.java 源代码,内容仅作参考
package com.mobile.auth.o;
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.model.MonitorStruct;
import org.json.JSONObject;
public class d extends com.mobile.auth.gatewayauth.manager.a {
private a i;
public d(Context context, com.mobile.auth.gatewayauth.manager.d dVar) {
super(context, dVar, "cm_zyhl", null);
this.i = a.a(this.d);
}
static com.mobile.auth.m.a a(d dVar) {
try {
return dVar.h;
} catch (Throwable th) {
try {
ExceptionProcessor.processException(th);
return null;
} catch (Throwable th2) {
ExceptionProcessor.processException(th2);
return null;
}
}
}
static void a(d dVar, RequestCallback requestCallback, String str, String str2, String str3, String str4, MonitorStruct monitorStruct, String str5) {
try {
dVar.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(d dVar, String str, String str2, String str3, boolean z, String str4, MonitorStruct monitorStruct) {
try {
dVar.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(d dVar) {
try {
return dVar.h;
} catch (Throwable th) {
try {
ExceptionProcessor.processException(th);
return null;
} catch (Throwable th2) {
ExceptionProcessor.processException(th2);
return null;
}
}
}
static void b(d dVar, RequestCallback requestCallback, String str, String str2, String str3, String str4, MonitorStruct monitorStruct, String str5) {
try {
dVar.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(d dVar, String str, String str2, String str3, boolean z, String str4, MonitorStruct monitorStruct) {
try {
dVar.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(d dVar) {
try {
return dVar.h;
} catch (Throwable th) {
try {
ExceptionProcessor.processException(th);
return null;
} catch (Throwable th2) {
ExceptionProcessor.processException(th2);
return null;
}
}
}
static void c(d dVar, RequestCallback requestCallback, String str, String str2, String str3, String str4, MonitorStruct monitorStruct, String str5) {
try {
dVar.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 c(d dVar, String str, String str2, String str3, boolean z, String str4, MonitorStruct monitorStruct) {
try {
dVar.a(str, str2, str3, z, str4, monitorStruct);
} catch (Throwable th) {
try {
ExceptionProcessor.processException(th);
} catch (Throwable th2) {
ExceptionProcessor.processException(th2);
}
}
}
@Override
public void a(long j) {
try {
super.a(j);
this.i.a(this.c);
} 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(str);
this.i.b(str2);
} catch (Throwable th) {
try {
ExceptionProcessor.processException(th);
} catch (Throwable th2) {
ExceptionProcessor.processException(th2);
}
}
}
@Override
public void a(boolean z) {
try {
com.mobile.auth.e.a.a(z);
} catch (Throwable th) {
try {
ExceptionProcessor.processException(th);
} catch (Throwable th2) {
ExceptionProcessor.processException(th2);
}
}
}
@Override
public String b(String str, String str2) {
try {
if (TextUtils.isEmpty(str)) {
return str;
}
try {
Integer valueOf = Integer.valueOf(Integer.parseInt(str));
if (valueOf.intValue() >= 10000) {
if (valueOf.intValue() <= 40000) {
return str2;
}
}
} catch (Exception unused) {
}
char c = 65535;
switch (str.hashCode()) {
case 1448695583:
if (str.equals("102101")) {
c = 1;
break;
}
break;
case 1448695585:
if (str.equals("102103")) {
c = 2;
break;
}
break;
case 1448696546:
if (str.equals("102203")) {
c = 0;
break;
}
break;
case 1448699433:
if (str.equals("102507")) {
c = 5;
break;
}
break;
case 1477264254:
if (str.equals("200022")) {
c = 4;
break;
}
break;
case 1477264255:
if (str.equals("200023")) {
c = 6;
break;
}
break;
case 1477264256:
if (str.equals("200024")) {
c = 7;
break;
}
break;
case 1477264259:
if (str.equals("200027")) {
c = 3;
break;
}
break;
}
switch (c) {
case 0:
return "600025";
case 1:
case 2:
case 3:
case 4:
return "-10006";
case 5:
case 6:
case 7:
return "600015";
default:
return str2;
}
} catch (Throwable th) {
try {
ExceptionProcessor.processException(th);
return null;
} catch (Throwable th2) {
ExceptionProcessor.processException(th2);
return null;
}
}
}
@Override
public void c() {
try {
this.i.b();
} catch (Throwable th) {
try {
ExceptionProcessor.processException(th);
} catch (Throwable th2) {
ExceptionProcessor.processException(th2);
}
}
}
@Override
public synchronized void d(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("cmcc.get.logincode");
monitorStruct.setNetworkType(com.mobile.auth.gatewayauth.utils.b.a(this.d, true));
if (!TextUtils.isEmpty(this.a) && !TextUtils.isEmpty(this.b)) {
this.i.a(new com.mobile.auth.e.e() {
@Override
public void a(int i, JSONObject jSONObject) {
String str;
String optString;
String optString2;
try {
monitorStruct.setCarrierReturnTime(System.currentTimeMillis());
if (jSONObject == null) {
jSONObject = new JSONObject();
}
String optString3 = jSONObject.optString(com.taobao.agoo.a.a.b.JSON_ERRORCODE);
String str2 = "";
if (jSONObject.has("resultDesc")) {
optString = jSONObject.optString("resultDesc");
} else if (jSONObject.has("desc")) {
optString = jSONObject.optString("desc");
} else {
if (!jSONObject.has("resultString")) {
str = "";
String optString4 = jSONObject.optString("traceId");
optString2 = jSONObject.optString("securityphone");
com.mobile.auth.m.a a = d.a(d.this);
String[] strArr = new String[7];
strArr[0] = "cmcc:";
strArr[1] = "getLoginInfo:code=";
strArr[2] = optString3;
strArr[3] = ",msg=";
strArr[4] = str;
strArr[5] = ",json=";
if (jSONObject == null) {
str2 = jSONObject.toString();
}
strArr[6] = str2;
a.a(strArr);
monitorStruct.setCarrierTraceId(optString4);
if (!TextUtils.isEmpty(optString2)) {
d.a(d.this, requestCallback, optString3, str, jSONObject.toString(), "cm_zyhl", monitorStruct, "600012");
return;
}
requestCallback.onSuccess(a.C0116a.a().a(optString2).c("中国移动认证服务条款").d("https://wap.cmpassport.com/resources/html/contract.html").a());
monitorStruct.setPhoneNumber(optString2);
d.a(d.this, optString3, "", "", true, "cm_zyhl", monitorStruct);
return;
}
optString = jSONObject.optString("resultString");
}
str = optString;
String optString42 = jSONObject.optString("traceId");
optString2 = jSONObject.optString("securityphone");
com.mobile.auth.m.a a2 = d.a(d.this);
String[] strArr2 = new String[7];
strArr2[0] = "cmcc:";
strArr2[1] = "getLoginInfo:code=";
strArr2[2] = optString3;
strArr2[3] = ",msg=";
strArr2[4] = str;
strArr2[5] = ",json=";
if (jSONObject == null) {
}
strArr2[6] = str2;
a2.a(strArr2);
monitorStruct.setCarrierTraceId(optString42);
if (!TextUtils.isEmpty(optString2)) {
}
} catch (Throwable th) {
try {
ExceptionProcessor.processException(th);
} catch (Throwable th2) {
ExceptionProcessor.processException(th2);
}
}
}
}, -1);
return;
}
a(requestCallback, "600017", "AppID Secret解析失败", "", "cm_zyhl", 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 {
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("cmcc.get.logintoken");
monitorStruct.setNetworkType(com.mobile.auth.gatewayauth.utils.b.a(this.d, true));
this.i.a(new com.mobile.auth.e.e() {
@Override
public void a(int i, JSONObject jSONObject) {
String str;
String optString;
String optString2;
try {
monitorStruct.setCarrierReturnTime(System.currentTimeMillis());
if (jSONObject == null) {
jSONObject = new JSONObject();
}
String optString3 = jSONObject.optString(com.taobao.agoo.a.a.b.JSON_ERRORCODE);
String str2 = "";
if (jSONObject.has("resultDesc")) {
optString = jSONObject.optString("resultDesc");
} else if (jSONObject.has("desc")) {
optString = jSONObject.optString("desc");
} else {
if (!jSONObject.has("resultString")) {
str = "";
String optString4 = jSONObject.optString("traceId");
optString2 = jSONObject.optString("token");
monitorStruct.setCarrierTraceId(optString4);
com.mobile.auth.m.a b = d.b(d.this);
String[] strArr = new String[7];
strArr[0] = "cmcc:";
strArr[1] = "getLoginToken:code=";
strArr[2] = optString3;
strArr[3] = ",msg=";
strArr[4] = str;
strArr[5] = ",json=";
if (jSONObject == null) {
str2 = jSONObject.toString();
}
strArr[6] = str2;
b.a(strArr);
if (!TextUtils.isEmpty(optString2)) {
d.b(d.this, requestCallback, optString3, str, jSONObject.toString(), "cm_zyhl", monitorStruct, "600011");
return;
}
monitorStruct.setAccessCode(jSONObject.optString("token"));
d.b(d.this, optString3, "", "", true, "cm_zyhl", monitorStruct);
requestCallback.onSuccess(a.C0116a.a().b(jSONObject.optString("token")).a(System.currentTimeMillis() + 120000).a());
return;
}
optString = jSONObject.optString("resultString");
}
str = optString;
String optString42 = jSONObject.optString("traceId");
optString2 = jSONObject.optString("token");
monitorStruct.setCarrierTraceId(optString42);
com.mobile.auth.m.a b2 = d.b(d.this);
String[] strArr2 = new String[7];
strArr2[0] = "cmcc:";
strArr2[1] = "getLoginToken:code=";
strArr2[2] = optString3;
strArr2[3] = ",msg=";
strArr2[4] = str;
strArr2[5] = ",json=";
if (jSONObject == null) {
}
strArr2[6] = str2;
b2.a(strArr2);
if (!TextUtils.isEmpty(optString2)) {
}
} 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);
}
}
}
@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("cmcc.getoken");
monitorStruct.setNetworkType(com.mobile.auth.gatewayauth.utils.b.a(this.d, true));
if (!TextUtils.isEmpty(this.a) && !TextUtils.isEmpty(this.b)) {
this.i.b(new com.mobile.auth.e.e() {
@Override
public void a(int i, JSONObject jSONObject) {
String str;
String optString;
String optString2;
try {
monitorStruct.setCarrierReturnTime(System.currentTimeMillis());
if (jSONObject == null) {
jSONObject = new JSONObject();
}
String optString3 = jSONObject.optString(com.taobao.agoo.a.a.b.JSON_ERRORCODE);
if (jSONObject.has("resultDesc")) {
optString = jSONObject.optString("resultDesc");
} else if (jSONObject.has("desc")) {
optString = jSONObject.optString("desc");
} else {
if (!jSONObject.has("resultString")) {
str = "";
String optString4 = jSONObject.optString("traceId");
optString2 = jSONObject.optString("token");
if (!TextUtils.isEmpty(optString2)) {
d.c(d.this, requestCallback, optString3, str, jSONObject.toString(), "cm_zyhl", monitorStruct, "600011");
return;
}
d.c(d.this).a("cmcc:", "getAccessCode:", jSONObject.toString());
monitorStruct.setCarrierTraceId(optString4);
monitorStruct.setAccessCode(optString2);
d.c(d.this, optString3, "", "", true, "cm_zyhl", monitorStruct);
requestCallback.onSuccess(a.C0116a.a().b(optString2).a(System.currentTimeMillis() + 120000).a());
return;
}
optString = jSONObject.optString("resultString");
}
str = optString;
String optString42 = jSONObject.optString("traceId");
optString2 = jSONObject.optString("token");
if (!TextUtils.isEmpty(optString2)) {
}
} catch (Throwable th) {
try {
ExceptionProcessor.processException(th);
} catch (Throwable th2) {
ExceptionProcessor.processException(th2);
}
}
}
}, -1);
return;
}
a(requestCallback, "600017", "AppID Secret解析失败", "", "cm_zyhl", monitorStruct, "600011");
} catch (Throwable th) {
try {
ExceptionProcessor.processException(th);
} catch (Throwable th2) {
ExceptionProcessor.processException(th2);
}
}
}
}