流利说-英语 v8.47.26版本的 MD5 值为:0079dce5ff96e6cdbc95c261b3f51387
以下内容为反编译后的 a.java 源代码,内容仅作参考
package com.geetest.onelogin.o.a;
import android.content.Context;
import android.text.TextUtils;
import com.geetest.onelogin.p.f;
import com.geetest.onelogin.p.j;
import com.geetest.onelogin.t.ab;
import com.geetest.onelogin.t.g;
import com.geetest.onelogin.t.s;
import com.huawei.hms.framework.common.hianalytics.CrashHianalyticsData;
import com.huawei.hms.support.hianalytics.HiAnalyticsConstant;
import com.qiniu.android.http.Client;
import com.sina.weibo.sdk.web.WebPicUploadResult;
import java.util.HashMap;
import java.util.Map;
import org.json.JSONObject;
public class a extends com.geetest.onelogin.o.a<Void> {
private j f1243b;
private JSONObject c;
private String d;
private JSONObject e;
@Override
protected boolean a(int i, com.geetest.onelogin.o.d<String, Void> dVar, JSONObject jSONObject) throws Exception {
return true;
}
@Override
public boolean h() {
return true;
}
private a(String str, Context context) {
super(str, context);
}
public static a a(Context context, j jVar, JSONObject jSONObject, String str, JSONObject jSONObject2) {
a aVar = new a(com.geetest.onelogin.t.j.a(f.a().c(), "/clientreport_onelogin"), context);
aVar.a(0);
aVar.b(0);
aVar.f1243b = jVar;
aVar.b("ClientReportCoder");
aVar.c(15000);
aVar.c = jSONObject;
aVar.d = str;
aVar.e = jSONObject2;
return aVar;
}
@Override
public JSONObject a() throws Exception {
JSONObject jSONObject = this.c;
if (jSONObject != null) {
return jSONObject;
}
this.c = new JSONObject();
this.c.put(CrashHianalyticsData.PROCESS_ID, this.f1243b.f());
this.c.put(WebPicUploadResult.RESP_UPLOAD_PIC_PARAM_CODE, this.d);
this.c.put("metadata", this.e);
this.c.put(HiAnalyticsConstant.BI_KEY_APP_ID, f.a().b());
this.c.put("clienttype", "1");
this.c.put("sdk", "2.8.7.1");
this.c.put("operator", this.f1243b.a());
this.c.put("pre_token_time", this.f1243b.j().e() + "");
com.geetest.onelogin.k.d h = this.f1243b.j().h();
JSONObject jSONObject2 = this.c;
if (h == com.geetest.onelogin.k.d.EMPTY) {
h = com.geetest.onelogin.k.d.Normal;
}
jSONObject2.put("pre_token_type", h.getValue());
this.c.put("request_token_time", this.f1243b.k().b() + "");
this.c.put("operator_error_code", this.f1243b.q());
if (!f.a().g()) {
this.c.put("opsalt", a(this.f1243b));
}
return this.c;
}
private static String a(j jVar) {
JSONObject jSONObject = new JSONObject();
try {
String e = jVar.e();
if (TextUtils.isEmpty(e)) {
e = s.a(s.a());
}
jSONObject.put("risk_info", com.geetest.onelogin.e.c.a(com.geetest.onelogin.i.b.a(), true, true, true, jVar.k().c()));
com.geetest.onelogin.t.d.b("onelogin 接口 opSalt 参数:" + jSONObject);
return com.geetest.onelogin.f.a.a(jSONObject.toString(), e);
} catch (Exception e2) {
ab.a((Throwable) e2);
return "";
}
}
@Override
public Map<String, String> k() {
Map<String, String> a2 = g.a(j(), this.c.toString());
if (a2 == null) {
a2 = new HashMap<>();
}
a2.put(Client.ContentTypeHeader, Client.JsonMime);
return a2;
}
}