CEEX v1.0.1版本的 MD5 值为:d20246587215ec3471b0d051724c6d34
以下内容为反编译后的 x.java 源代码,内容仅作参考
package com.geetest.sdk;
import android.app.Activity;
import android.text.TextUtils;
import com.geetest.sdk.a;
import com.geetest.sdk.g;
import com.geetest.sdk.model.beans.Gt3GeetestText;
import io.bhex.app.BuildConfig;
import org.json.JSONObject;
public class x extends u {
private static final String f = "x";
@Override
public int a() {
return 20;
}
@Override
public void a(bb bbVar) {
bbVar.e().a(bbVar.d(), new b());
}
public void a(String str, String str2, String str3, boolean z) {
com.geetest.sdk.utils.l.b(f, str2);
com.geetest.sdk.model.beans.a aVar = new com.geetest.sdk.model.beans.a();
aVar.c(str3);
aVar.b(str);
aVar.a(System.currentTimeMillis() - this.b.j());
aVar.a(this.b.d().c());
aVar.a(z);
this.b.a(aVar);
b(this.b);
}
private class b extends av {
private boolean a;
class a implements Runnable {
a() {
}
@Override
public void run() {
a.d a;
x.this.b.e().b();
if (x.this.b.g() == 2 && (a = x.this.b.a()) != null) {
a.a(Gt3GeetestText.getClosedText(), "");
}
x.this.b.e().a(g.EnumC0015g.NUMBER_ONE_CLOSE);
x.this.d.getListener().onClosed(1);
}
}
private b() {
this.a = false;
}
@Override
public void a() {
a.d a2;
if (this.a) {
return;
}
JSONObject jSONObject = new JSONObject();
try {
jSONObject.put("type", "Sensebot");
jSONObject.put("sdkVersion", "4.3.4.3");
jSONObject.put("challenge", x.this.b.d().c());
jSONObject.put("duration", System.currentTimeMillis() - x.this.b.j());
} catch (Exception e) {
e.printStackTrace();
}
x.this.b.b().getListener().onDialogReady(jSONObject.toString());
x.this.b.e().l();
if (x.this.b.g() == 2 && (a2 = x.this.b.a()) != null) {
a2.c();
}
x.this.b.i().g(BuildConfig.VERIFY_TYPE);
x xVar = x.this;
xVar.e(xVar.b);
}
@Override
public void b() {
((Activity) x.this.c).runOnUiThread(new a());
}
@Override
public void a(String str, String str2) {
this.a = true;
x xVar = x.this;
xVar.a(str, "webview 回调错误-->" + str + "-->" + str2, str2, str.startsWith("_"));
if (TextUtils.isEmpty(str) || str.startsWith("_")) {
return;
}
x.this.b.i().g("0");
x xVar2 = x.this;
xVar2.e(xVar2.b);
}
@Override
public void a(boolean z, String str) {
if (z) {
try {
com.geetest.sdk.model.beans.b d = x.this.b.d();
JSONObject jSONObject = new JSONObject(str);
d.d(jSONObject.getString("geetest_challenge"));
d.f(jSONObject.getString("geetest_validate"));
d.e(jSONObject.getString("geetest_seccode"));
x xVar = x.this;
xVar.a.c(xVar.b);
return;
} catch (Exception e) {
e.printStackTrace();
x.this.a("202", "webview 解析json错误,错误码,202--->" + str + " Exception: " + e.toString(), "webview parse json error-->" + str + "-->" + e.toString(), false);
return;
}
}
x.this.a("202", "webview 验证错误,错误码,202--->" + str, "webview parse json error-->" + str, false);
}
}
}