热汗舞蹈 v1.24.1.0版本的 MD5 值为:f1dc6ef07903515a73f51f41f372123e
以下内容为反编译后的 j.java 源代码,内容仅作参考
package cc.quicklogin.sdk.f;
import android.content.Context;
import android.text.TextUtils;
import android.util.Base64;
import androidx.exifinterface.media.ExifInterface;
import cc.quicklogin.common.d.m;
import cc.quicklogin.common.exception.WebException;
import com.huawei.hms.framework.common.ContainerUtils;
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 java.util.UUID;
import org.json.JSONException;
import org.json.JSONObject;
public class j extends cc.quicklogin.common.a.d {
private String f2422b;
private String f2423c;
private String f2424d;
private String f2425e;
private String f2426f;
private String f2427g;
private byte[] f2428h;
private String f2429i;
public j(Context context, JSONObject jSONObject, cc.quicklogin.common.a.h hVar) {
super(context, "https://rcs.cmpassport.com/unisdk/rs/scripAndTokenForHttps", jSONObject, hVar);
}
public 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 msg;
try {
a10 = aVar.a();
} catch (Exception e10) {
WebException webException = cc.quicklogin.common.exception.b.f2243u;
b(webException.setMsg("移动预取号失败,捕获异常:" + e10.getMessage()));
}
if (TextUtils.isEmpty(a10)) {
msg = cc.quicklogin.common.exception.b.f2243u.setMsg("移动预取号失败,结果为空。");
} else {
JSONObject jSONObject = new JSONObject(a10);
String optString = jSONObject.optString("resultCode", "-1");
String optString2 = jSONObject.optString("desc", "");
if ("103000".equals(optString)) {
String a11 = cc.quicklogin.common.d.a.a(jSONObject.optString("resultdata", "").replaceAll(" ", ""), this.f2427g, this.f2428h, true);
m.a(a11);
JSONObject jSONObject2 = new JSONObject(a11);
String optString3 = jSONObject2.optString("sourceid");
String optString4 = jSONObject2.optString("phonescrip");
final String optString5 = jSONObject2.optString("securityphone");
JSONObject jSONObject3 = new JSONObject();
jSONObject3.put("scrip", optString4);
jSONObject3.put("sourceid", optString3);
jSONObject3.put("phone_id", this.f2429i);
jSONObject3.put("msgid", this.f2424d);
cc.quicklogin.common.a.f.a(this.f2146a).a((cc.quicklogin.common.a.d) new a(this.f2146a, jSONObject3, new cc.quicklogin.common.a.h() {
@Override
public void a(WebException webException2) {
j.this.b(webException2);
}
@Override
public void a(String str) {
JSONObject jSONObject4 = new JSONObject();
try {
jSONObject4.put("token", str + "2");
jSONObject4.put("mobile", optString5);
jSONObject4.put("operatorAppId", j.this.f2422b);
} catch (JSONException unused) {
}
if (j.this.f() != null) {
j.this.f().a(jSONObject4.toString());
}
try {
JSONObject jSONObject5 = new JSONObject();
jSONObject5.put("traceId", j.this.f2424d);
jSONObject5.put("interfaceType", "1".equals(f.a(j.this.f2146a)) ? "getPrePhonescripForHttps;" : "scripAndTokenForHttps");
jSONObject5.put("requestType", "preGetMobile");
cc.quicklogin.common.a.f.a(j.this.f2146a).a((cc.quicklogin.common.a.d) new c(j.this.f2146a, jSONObject5, null), true);
} catch (JSONException e11) {
e11.printStackTrace();
}
}
}), true);
m.a("PhoneScripRequest, httpClientResponse: " + aVar);
} else if ("103414".equals(optString)) {
m.c("中国移动appid非法或为空,请联系商务确认是否开通了中国移动一键登录功能!");
WebException webException2 = cc.quicklogin.common.exception.b.f2243u;
msg = webException2.setMsg("移动预取号失败,原因:103414," + optString2);
} else {
WebException webException3 = cc.quicklogin.common.exception.b.f2243u;
msg = webException3.setMsg("移动预取号失败,原因:" + optString + "," + optString2);
}
}
b(msg);
m.a("PhoneScripRequest, httpClientResponse: " + aVar);
}
@Override
public void a(WebException webException) {
b(webException);
}
@Override
public boolean a() {
return false;
}
@Override
public boolean g() {
return true;
}
@Override
public void k() {
JSONObject jSONObject;
try {
JSONObject d10 = d();
if (d10 == null) {
d10 = new JSONObject();
}
this.f2424d = cc.quicklogin.common.d.f.a(UUID.randomUUID().toString());
cc.quicklogin.sdk.h.e a10 = cc.quicklogin.sdk.h.e.a(this.f2146a);
this.f2429i = a10.u();
cc.quicklogin.sdk.d.b b10 = cc.quicklogin.sdk.h.d.b(a10.l());
if (b10 == null) {
this.f2422b = "";
this.f2423c = "";
this.f2425e = "";
this.f2426f = "";
} else {
this.f2422b = b10.a();
this.f2423c = b10.b();
this.f2425e = b10.c();
this.f2426f = b10.d();
}
String format = new SimpleDateFormat("yyyyMMddHHmmssSSS", Locale.getDefault()).format(new Date());
if ("1".equals(f.a(this.f2146a))) {
String b11 = f.b(this.f2146a);
a(TextUtils.isEmpty(b11) ? "https://rcs.cmpassport.com/unisdk/rs/getPrePhonescripForHttps" : b11);
String valueOf = String.valueOf(cc.quicklogin.sdk.h.f.a(this.f2146a).getType());
String b12 = cc.quicklogin.sdk.h.f.b(this.f2146a);
String str = cc.quicklogin.common.d.g.a(true)[0];
String str2 = cc.quicklogin.common.d.g.a(true)[1];
String str3 = "1.0&quick_login_android_5.8.1&" + this.f2422b + ContainerUtils.FIELD_DELIMITER + ExifInterface.GPS_MEASUREMENT_3D + "&&&&" + valueOf + ContainerUtils.FIELD_DELIMITER + b12 + ContainerUtils.FIELD_DELIMITER + cc.quicklogin.sdk.a.a.a() + ContainerUtils.FIELD_DELIMITER + cc.quicklogin.sdk.a.a.b() + ContainerUtils.FIELD_DELIMITER + cc.quicklogin.sdk.a.a.c() + ContainerUtils.FIELD_DELIMITER + TPReportParams.ERROR_CODE_NO_ERROR + ContainerUtils.FIELD_DELIMITER + "7.0&&" + this.f2424d + ContainerUtils.FIELD_DELIMITER + format + "&&&&&&&&&&" + this.f2425e + ContainerUtils.FIELD_DELIMITER + this.f2426f + ContainerUtils.FIELD_DELIMITER + cc.quicklogin.common.d.f.a("quick_login_android_5.8.1" + this.f2422b + ExifInterface.GPS_MEASUREMENT_3D + "" + valueOf + b12 + cc.quicklogin.sdk.a.a.a() + cc.quicklogin.sdk.a.a.b() + cc.quicklogin.sdk.a.a.c() + TPReportParams.ERROR_CODE_NO_ERROR + this.f2424d + format + this.f2423c + "" + this.f2425e + this.f2426f + str + str2).toLowerCase() + "&&" + str + ContainerUtils.FIELD_DELIMITER + str2;
if (!TextUtils.isEmpty(this.f2429i)) {
str3 = str3 + ContainerUtils.FIELD_DELIMITER + this.f2429i;
}
m.a(str3);
String a11 = cc.quicklogin.sdk.h.a.a();
this.f2427g = a11;
m.a(a11);
d10.put("encrypted", cc.quicklogin.sdk.h.g.a(this.f2427g, "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQC/YHP9utFGOhGk7Xf5L7jOgQz5v2JKxdrIE3yzYsHoZJwzKC7Ttx380UZmBFzr5I1k6FFMn/YGXd4ts6UHT/nzsCIcgZlTTem7Pjdm1V9bJgQ6iQvFHsvT+vNgJ3wAIRd+iCMXm8y96yZhD2+SH5odBYS2ZzwTYXBQDvB/rTfdjwIDAQAB", cc.quicklogin.sdk.h.h.RSA1024withRSA.a()));
byte[] bArr = new byte[16];
this.f2428h = bArr;
d10.put("reqdata", cc.quicklogin.common.d.a.b(str3, this.f2427g, bArr, true));
jSONObject = d10;
} else {
String b13 = f.b(this.f2146a);
a(TextUtils.isEmpty(b13) ? "https://rcs.cmpassport.com/unisdk/rs/scripAndTokenForHttps" : b13);
String valueOf2 = String.valueOf(cc.quicklogin.sdk.h.f.a(this.f2146a).getType());
String b14 = cc.quicklogin.sdk.h.f.b(this.f2146a);
String str4 = this.f2429i;
String str5 = cc.quicklogin.common.d.g.a(true)[0];
String str6 = cc.quicklogin.common.d.g.a(true)[1];
StringBuilder sb2 = new StringBuilder();
JSONObject jSONObject2 = d10;
sb2.append("quick_login_android_5.9.3");
sb2.append(this.f2422b);
sb2.append("");
sb2.append(valueOf2);
sb2.append(b14);
sb2.append(cc.quicklogin.sdk.a.a.a());
sb2.append(cc.quicklogin.sdk.a.a.b());
sb2.append(cc.quicklogin.sdk.a.a.c());
sb2.append(TPReportParams.ERROR_CODE_NO_ERROR);
sb2.append(this.f2424d);
sb2.append(format);
sb2.append(this.f2423c);
sb2.append("");
sb2.append(this.f2425e);
sb2.append(this.f2426f);
sb2.append(str5);
sb2.append(str6);
sb2.append("001");
sb2.append(str4);
sb2.append("");
sb2.append("");
sb2.append("pre");
String str7 = "1.0&quick_login_android_5.9.3&" + this.f2422b + "&&" + valueOf2 + ContainerUtils.FIELD_DELIMITER + b14 + ContainerUtils.FIELD_DELIMITER + cc.quicklogin.sdk.a.a.a() + ContainerUtils.FIELD_DELIMITER + cc.quicklogin.sdk.a.a.b() + ContainerUtils.FIELD_DELIMITER + cc.quicklogin.sdk.a.a.c() + ContainerUtils.FIELD_DELIMITER + TPReportParams.ERROR_CODE_NO_ERROR + ContainerUtils.FIELD_DELIMITER + "3.0&&" + this.f2424d + ContainerUtils.FIELD_DELIMITER + format + "&&" + cc.quicklogin.common.d.f.a(sb2.toString()).toLowerCase() + ContainerUtils.FIELD_DELIMITER + this.f2425e + ContainerUtils.FIELD_DELIMITER + this.f2426f + "&&" + str5 + ContainerUtils.FIELD_DELIMITER + str6 + ContainerUtils.FIELD_DELIMITER + "001" + ContainerUtils.FIELD_DELIMITER + str4 + ContainerUtils.FIELD_DELIMITER + "" + ContainerUtils.FIELD_DELIMITER + "" + ContainerUtils.FIELD_DELIMITER + "pre";
m.a(str7);
this.f2427g = cc.quicklogin.sdk.h.a.a();
m.a("aesKey === " + this.f2427g);
String a12 = cc.quicklogin.sdk.h.g.a(this.f2427g, "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDNFGdEpQ1d8cPqekvvEDQyBGnIKwvjX9o3OmnnqWMGbIiFYIpc21QeG7aqizuWdXlgS5M9rstDfHQfG/AaPElJ7YixBCau4hdVwFpRmb9NIuqavDeHKP9BKPZ01Ra5/666NGKBqmkRRer3lBCe6EKNUc2U/DZg6U/Q3CTPiORt/wIDAQAB", cc.quicklogin.sdk.h.h.RSA256OAEP.a());
byte[] b15 = cc.quicklogin.common.d.a.b();
this.f2428h = b15;
String encodeToString = Base64.encodeToString(b15, 0);
jSONObject = jSONObject2;
jSONObject.put("encrypted", a12);
jSONObject.put("encryptedIV", encodeToString);
jSONObject.put("reqdata", cc.quicklogin.common.d.a.b(str7, this.f2427g, this.f2428h, true));
}
a(jSONObject);
} catch (Exception e10) {
e10.printStackTrace();
}
}
@Override
public int l() {
return 10;
}
@Override
public Map<String, String> m() {
return "1".equals(f.a(this.f2146a)) ? cc.quicklogin.sdk.a.a.a(this.f2146a, this.f2424d, this.f2422b) : cc.quicklogin.sdk.a.a.b(this.f2146a, this.f2424d, this.f2422b);
}
}