热汗舞蹈 v1.24.1.0版本的 MD5 值为:f1dc6ef07903515a73f51f41f372123e
以下内容为反编译后的 a.java 源代码,内容仅作参考
package cc.quicklogin.sdk.f;
import android.content.Context;
import android.text.TextUtils;
import cc.quicklogin.common.d.m;
import cc.quicklogin.common.exception.WebException;
import com.huawei.hms.support.hianalytics.HiAnalyticsConstant;
import com.tencent.thumbplayer.core.downloadproxy.api.TPDownloadProxyEnum;
import com.tencent.thumbplayer.tplayer.plugins.report.TPReportParams;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Locale;
import java.util.Map;
import org.json.JSONException;
import org.json.JSONObject;
class a extends cc.quicklogin.common.a.d {
private String f2401b;
private String f2402c;
private String f2403d;
private String f2404e;
private String f2405f;
private String f2406g;
public a(Context context, JSONObject jSONObject, cc.quicklogin.common.a.h hVar) {
super(context, "https://rcs.cmpassport.com/unisdk/rs/scripAndTokenForHttps", r0, hVar);
JSONObject jSONObject2 = jSONObject;
if (jSONObject2 == null) {
try {
jSONObject2 = new JSONObject();
} catch (JSONException e10) {
e10.printStackTrace();
return;
}
}
this.f2403d = jSONObject2.optString("msgid");
cc.quicklogin.sdk.h.e a10 = cc.quicklogin.sdk.h.e.a(context);
this.f2406g = a10.u();
cc.quicklogin.sdk.d.b b10 = cc.quicklogin.sdk.h.d.b(a10.l());
if (b10 == null) {
this.f2401b = "";
this.f2402c = "";
this.f2404e = "";
this.f2405f = "";
} else {
this.f2401b = b10.a();
this.f2402c = b10.b();
this.f2404e = b10.c();
this.f2405f = b10.d();
}
if ("1".equals(f.a(context))) {
String c10 = f.c(context);
a(TextUtils.isEmpty(c10) ? "https://onekey.cmpassport.com/unisdk/api/getAuthToken" : c10);
jSONObject2.put("version", "0.1");
jSONObject2.put(HiAnalyticsConstant.HaKey.BI_KEY_APPID, this.f2401b);
jSONObject2.put("sign", cc.quicklogin.common.d.f.a("0.1" + this.f2401b + this.f2402c + jSONObject2.optString("scrip")).toUpperCase());
jSONObject2.put("interfacever", "6.0");
jSONObject2.put("userCapaid", "200");
jSONObject2.put("clienttype", TPReportParams.ERROR_CODE_NO_ERROR);
jSONObject2.put("authenticated_appid", "");
jSONObject2.put("genTokenByAppid", "");
JSONObject jSONObject3 = new JSONObject();
jSONObject3.put("os", cc.quicklogin.sdk.a.a.c());
jSONObject3.put("dev_model", cc.quicklogin.sdk.a.a.b());
jSONObject3.put("dev_brand", cc.quicklogin.sdk.a.a.a());
jSONObject3.put("mnc", String.valueOf(cc.quicklogin.sdk.h.f.a(context).getType()));
jSONObject3.put("client_type", TPReportParams.ERROR_CODE_NO_ERROR);
jSONObject3.put(TPDownloadProxyEnum.USER_NETWORK_TYPE, cc.quicklogin.sdk.h.f.b(context));
jSONObject3.put("ipv4_list", "");
jSONObject3.put("ipv6_list", "");
jSONObject3.put("is_cert", TPReportParams.ERROR_CODE_NO_ERROR);
jSONObject3.put("is_root", TPReportParams.ERROR_CODE_NO_ERROR);
jSONObject2.put("rcData", jSONObject3);
} else {
String c11 = f.c(context);
if (TextUtils.isEmpty(c11)) {
c11 = "https://rcs.cmpassport.com/unisdk/rs/scripAndTokenForHttps";
}
a(c11);
String format = new SimpleDateFormat("yyyyMMddHHmmssSSS", Locale.getDefault()).format(new Date());
String valueOf = String.valueOf(cc.quicklogin.sdk.h.f.a(context).getType());
String b11 = cc.quicklogin.sdk.h.f.b(context);
String str = this.f2406g;
String str2 = cc.quicklogin.common.d.g.a(true)[0];
String str3 = cc.quicklogin.common.d.g.a(true)[1];
String optString = jSONObject2.optString("scrip");
String lowerCase = cc.quicklogin.common.d.f.a("quick_login_android_5.9.3" + this.f2401b + "" + valueOf + b11 + cc.quicklogin.sdk.a.a.a() + cc.quicklogin.sdk.a.a.b() + cc.quicklogin.sdk.a.a.c() + TPReportParams.ERROR_CODE_NO_ERROR + this.f2403d + format + this.f2402c + "" + this.f2404e + this.f2405f + str2 + str3 + "001" + str + optString + "200authz").toLowerCase();
jSONObject2.put("ver", "1.0");
jSONObject2.put("sdkver", "quick_login_android_5.9.3");
jSONObject2.put(HiAnalyticsConstant.HaKey.BI_KEY_APPID, this.f2401b);
jSONObject2.put("imsi", "");
jSONObject2.put("operatortype", valueOf);
jSONObject2.put("networktype", b11);
jSONObject2.put("mobilebrand", cc.quicklogin.sdk.a.a.a());
jSONObject2.put("mobilemodel", cc.quicklogin.sdk.a.a.b());
jSONObject2.put("mobilesystem", cc.quicklogin.sdk.a.a.c());
jSONObject2.put("clienttype", TPReportParams.ERROR_CODE_NO_ERROR);
jSONObject2.put("interfacever", "3.0");
jSONObject2.put("expandparams", "");
jSONObject2.put("msgid", this.f2403d);
jSONObject2.put("timestamp", format);
jSONObject2.put("subimsi", "");
jSONObject2.put("sign", lowerCase);
jSONObject2.put("apppackage", this.f2404e);
jSONObject2.put("appsign", this.f2405f);
jSONObject2.put("ipv4_list", str2);
jSONObject2.put("ipv6_list", str3);
jSONObject2.put("sdkType", "001");
jSONObject2.put("tempPDR", str);
jSONObject2.put("scrip", optString);
jSONObject2.put("userCapaid", "200");
jSONObject2.put("funcType", "authz");
}
a(jSONObject2);
}
private void b(WebException webException) {
a(true);
if (f() != null) {
f().a(webException);
}
}
@Override
public void a(cc.quicklogin.common.a.a aVar) {
String a10;
WebException webException;
String str;
try {
a10 = aVar.a();
} catch (JSONException unused) {
b(cc.quicklogin.common.exception.b.f2243u.setMsg("移动预取号失败,token获取捕获异常"));
}
if (TextUtils.isEmpty(a10)) {
webException = cc.quicklogin.common.exception.b.f2243u;
str = "移动预取号失败,token获取结果为空";
} else {
m.a("CMAuth result ==" + a10);
JSONObject jSONObject = new JSONObject(a10);
String optString = jSONObject.optString("resultCode", "-1");
String optString2 = jSONObject.optString("desc", "");
if ("103000".equals(optString)) {
String optString3 = jSONObject.optString("token", "");
if (f() != null) {
f().a(optString3);
}
try {
JSONObject jSONObject2 = new JSONObject();
jSONObject2.put("traceId", this.f2403d);
jSONObject2.put("interfaceType", "1".equals(f.a(this.f2146a)) ? "getAuthToken;" : "scripAndTokenForHttps");
jSONObject2.put("requestType", "loginAuth");
cc.quicklogin.common.a.f.a(this.f2146a).a((cc.quicklogin.common.a.d) new c(this.f2146a, jSONObject2, null), true);
} catch (JSONException e10) {
e10.printStackTrace();
}
m.a("CMAuthTokenRequest, httpClientResponse: " + aVar.toString());
}
if ("103119".equals(optString)) {
cc.quicklogin.sdk.h.e.a(this.f2146a).a(true);
}
webException = cc.quicklogin.common.exception.b.f2243u;
str = "移动预取号失败,原因:" + optString + "," + optString2;
}
b(webException.setMsg(str));
m.a("CMAuthTokenRequest, httpClientResponse: " + aVar.toString());
}
@Override
public void a(WebException webException) {
b(webException);
}
@Override
public boolean a() {
return false;
}
@Override
public Map<String, String> m() {
return "1".equals(f.a(this.f2146a)) ? cc.quicklogin.sdk.a.a.c(this.f2146a, this.f2403d, this.f2401b) : cc.quicklogin.sdk.a.a.d(this.f2146a, this.f2403d, this.f2401b);
}
}