热汗舞蹈 v1.24.1.0版本的 MD5 值为:f1dc6ef07903515a73f51f41f372123e
以下内容为反编译后的 d.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.tencent.thumbplayer.core.thirdparties.LocalCache;
import com.xiaomi.mipush.sdk.Constants;
import java.util.Map;
import org.json.JSONObject;
public class d extends cc.quicklogin.common.a.d {
private cc.quicklogin.sdk.d.a f2412b;
private String f2413c;
private String f2414d;
public d(Context context, JSONObject jSONObject, cc.quicklogin.common.a.h hVar) {
super(context, "https://id6.me/auth/preauth.do", jSONObject, hVar);
}
private void a(int i10, String str) {
if (-6 == i10) {
cc.quicklogin.sdk.h.e.a(this.f2146a).a(true);
}
if (-20005 == i10) {
str = str + "应用包名:" + this.f2146a.getPackageName() + ",签名:" + cc.quicklogin.common.d.b.a(this.f2146a).l() + ",请检查是否与报备的一致!";
}
m.b("电信预取号失败,原因:" + i10 + Constants.ACCEPT_TIME_SEPARATOR_SP + str);
b(cc.quicklogin.common.exception.b.f2243u.setMsg("电信预取号失败,原因:" + i10 + Constants.ACCEPT_TIME_SEPARATOR_SP + str));
}
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 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)) {
JSONObject jSONObject = new JSONObject(a10);
int optInt = jSONObject.optInt("result", -1);
String optString = jSONObject.optString("msg", "");
if (optInt == 0) {
String optString2 = jSONObject.optString("data", "");
String f10 = this.f2412b.f();
if (f10.length() == 16) {
String a11 = cc.quicklogin.common.d.a.a(optString2, f10, cc.quicklogin.common.d.a.f2194a, false);
m.a("ctApiRequest result ==" + a11);
if (TextUtils.isEmpty(a11)) {
msg = cc.quicklogin.common.exception.b.f2243u.setMsg("电信预取号失败,原因:accessCode返回结果为空!");
} else {
JSONObject jSONObject2 = new JSONObject(a11);
String optString3 = jSONObject2.optString("accessCode", "");
String optString4 = jSONObject2.optString("number", "");
int optInt2 = jSONObject2.optInt("expiredTime", LocalCache.TIME_HOUR);
JSONObject jSONObject3 = new JSONObject();
jSONObject3.put("token", optString3 + "4");
jSONObject3.put("mobile", optString4);
jSONObject3.put("expiredTime", optInt2);
jSONObject3.put("operatorAppId", this.f2413c);
if (f() != null) {
f().a(jSONObject3.toString());
}
}
} else {
msg = cc.quicklogin.common.exception.b.f2243u.setMsg("电信预取号失败,原因:解密失败!");
}
} else {
a(optInt, optString);
}
m.a("CTSdkRequest, httpClientResponse: " + aVar);
}
msg = cc.quicklogin.common.exception.b.f2243u.setMsg("电信预取号失败,原因:未返回结果");
b(msg);
m.a("CTSdkRequest, httpClientResponse: " + aVar);
}
@Override
public void a(WebException webException) {
b(webException);
}
@Override
public boolean a() {
return false;
}
@Override
public boolean g() {
return true;
}
@Override
public boolean h() {
return true;
}
@Override
public void k() {
try {
cc.quicklogin.sdk.d.b b10 = cc.quicklogin.sdk.h.d.b(cc.quicklogin.sdk.h.e.a(this.f2146a).p());
if (b10 == null) {
b(cc.quicklogin.common.exception.b.f2243u.setMsg("电信预取号失败,原因:电信SDK初始化失败了,请检查是否开通了电信一键登录权限。"));
return;
}
this.f2413c = b10.a();
this.f2414d = b10.b();
cc.quicklogin.sdk.d.d dVar = new cc.quicklogin.sdk.d.d();
cc.quicklogin.sdk.d.c cVar = new cc.quicklogin.sdk.d.c();
cVar.c(this.f2413c);
cVar.a(this.f2414d);
cc.quicklogin.sdk.e.a.d.a(dVar, cVar, 3);
cc.quicklogin.sdk.d.a c10 = dVar.c();
this.f2412b = c10;
if (c10 == null) {
b(cc.quicklogin.common.exception.b.f2243u.setMsg("电信预取号失败,原因:请求参数拼接异常!"));
}
a((Object) this.f2412b.d());
} catch (Exception e10) {
e10.printStackTrace();
WebException webException = cc.quicklogin.common.exception.b.f2243u;
b(webException.setMsg("电信预取号失败,原因:" + e10.getMessage()));
}
}
@Override
public int l() {
return 10;
}
@Override
public Map<String, String> m() {
return cc.quicklogin.sdk.a.b.a(this.f2146a);
}
}