流利说-英语 v8.47.26版本的 MD5 值为:0079dce5ff96e6cdbc95c261b3f51387
以下内容为反编译后的 b.java 源代码,内容仅作参考
package com.geetest.onelogin.o.a;
import android.content.Context;
import android.net.Network;
import android.text.TextUtils;
import com.geetest.onelogin.f.b.g;
import com.geetest.onelogin.p.j;
import com.huawei.hms.support.api.entity.core.JosStatusCodes;
import com.qiniu.android.http.Client;
import java.net.Inet4Address;
import java.net.Inet6Address;
import java.net.InetAddress;
import java.net.NetworkInterface;
import java.security.interfaces.RSAPublicKey;
import java.util.Enumeration;
import java.util.HashMap;
import java.util.Map;
import org.json.JSONException;
import org.json.JSONObject;
public class b extends com.geetest.onelogin.o.a<com.geetest.onelogin.m.b.a> {
private j f1244b;
@Override
public boolean h() {
return true;
}
public b(String str, Context context) {
super(str, context);
}
public static b a(Context context, j jVar, Network network) {
b bVar = new b("https://id6.me/auth/preauth.do", context);
bVar.a(0);
bVar.b(0);
bVar.a(jVar.e());
bVar.a(network);
bVar.f1244b = jVar;
bVar.b("CtPreAuthCoder");
bVar.c(JosStatusCodes.RTN_CODE_COMMON_ERROR);
bVar.f();
return bVar;
}
@Override
protected String b() {
String str;
HashMap hashMap = new HashMap();
hashMap.put("appId", this.f1244b.c().b());
hashMap.put("clientType", "30100");
hashMap.put("format", "json");
hashMap.put("version", "3.0");
String str2 = "bussinessType=qhx&timeStamp=" + System.currentTimeMillis() + "&pipl=" + l() + "&rl=00000&";
String e = this.f1244b.e();
String a2 = com.geetest.onelogin.f.b.a.a(str2, e);
try {
str = g.a(e, (RSAPublicKey) g.a("MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQC5se07mkN71qsSJHjZ2Z0+Z+4LlLvf2sz7Md38VAa3EmAOvI7vZp3hbAxicL724ylcmisTPtZQhT/9C+25AELqy9PN9JmzKpwoVTUoJvxG4BoyT49+gGVl6s6zo1byNoHUzTfkmRfmC9MC53HvG8GwKP5xtcdptFjAIcgIR7oAWQIDAQAB"));
} catch (Exception e2) {
e2.printStackTrace();
str = null;
}
hashMap.put("paramKey", str);
hashMap.put("paramStr", a2);
hashMap.put("sign", a(this.f1244b.c().b(), str, a2, this.f1244b.c().c()));
return com.geetest.onelogin.t.j.a(hashMap).toString();
}
@Override
public void c(String str) {
try {
JSONObject jSONObject = new JSONObject(str);
int i = jSONObject.getInt("result");
com.geetest.onelogin.o.d<String, com.geetest.onelogin.m.b.a> dVar = new com.geetest.onelogin.o.d<>(null, null);
if (i != 0) {
a(i, str);
} else if (!a(i, dVar, jSONObject)) {
a(-4, dVar.f1251a);
} else {
a(200, dVar.f1251a, (String) dVar.f1252b);
}
} catch (Exception e) {
e.printStackTrace();
a(-4, str);
}
}
@Override
protected boolean a(int i, com.geetest.onelogin.o.d<String, com.geetest.onelogin.m.b.a> dVar, JSONObject jSONObject) {
?? optString = jSONObject.optString("msg");
String e = com.geetest.onelogin.f.b.a.e(jSONObject.optString("data"), this.f1244b.e());
if (TextUtils.isEmpty(e)) {
a(-3, jSONObject.optString("data"));
return false;
}
try {
JSONObject jSONObject2 = new JSONObject(e);
dVar.f1251a = optString;
dVar.f1252b = new com.geetest.onelogin.m.b.a(jSONObject2.optString("accessCode"), jSONObject2.optString("operatorType"), jSONObject2.optString("expiredTime"), jSONObject2.optString("number"));
return true;
} catch (JSONException unused) {
return false;
}
}
private static String a(String str, String str2, String str3, String str4) {
return com.geetest.onelogin.f.b.d.a(com.geetest.onelogin.f.b.d.a(str + "30100json" + str2 + str3 + "3.0", str4));
}
@Override
public Map<String, String> k() {
HashMap hashMap = new HashMap();
hashMap.put(Client.ContentTypeHeader, "application/x-www-form-urlencoded;charset=UTF-8");
return hashMap;
}
public static String l() {
StringBuilder sb = new StringBuilder();
try {
Enumeration<NetworkInterface> networkInterfaces = NetworkInterface.getNetworkInterfaces();
while (networkInterfaces.hasMoreElements()) {
NetworkInterface nextElement = networkInterfaces.nextElement();
if (!nextElement.getName().toLowerCase().contains("wlan")) {
Enumeration<InetAddress> inetAddresses = nextElement.getInetAddresses();
while (inetAddresses.hasMoreElements()) {
InetAddress nextElement2 = inetAddresses.nextElement();
if (!nextElement2.isLoopbackAddress() && !nextElement2.isLinkLocalAddress() && ((nextElement2 instanceof Inet4Address) || (nextElement2 instanceof Inet6Address))) {
sb.append(nextElement2.getHostAddress());
sb.append(",");
}
}
}
}
} catch (Exception unused) {
}
return sb.substring(0, sb.length() - 1);
}
}