热汗舞蹈 v1.24.1.0版本的 MD5 值为:f1dc6ef07903515a73f51f41f372123e
以下内容为反编译后的 e.java 源代码,内容仅作参考
package cc.quicklogin.sdk.f;
import android.content.Context;
import android.text.TextUtils;
import androidx.exifinterface.media.ExifInterface;
import cc.quicklogin.common.d.m;
import cc.quicklogin.common.exception.WebException;
import cn.com.chinatelecom.account.api.Helper;
import com.tencent.thumbplayer.core.thirdparties.LocalCache;
import com.tencent.thumbplayer.tplayer.plugins.report.TPReportParams;
import com.xiaomi.mipush.sdk.Constants;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.util.Map;
import org.json.JSONException;
import org.json.JSONObject;
public class e extends cc.quicklogin.common.a.d {
private String f2415b;
private String f2416c;
private String f2417d;
public e(Context context, JSONObject jSONObject, cc.quicklogin.common.a.h hVar) {
super(context, "https://id6.me/auth/presdk.do", jSONObject, hVar);
}
private void a(String str, String str2) {
if ("-6".equals(str)) {
cc.quicklogin.sdk.h.e.a(this.f2146a).a(true);
}
if ("-20005".equals(str)) {
str2 = str2 + "应用包名:" + this.f2146a.getPackageName() + ",签名:" + cc.quicklogin.common.d.b.a(this.f2146a).l() + ",请检查是否与报备的一致!";
}
m.b("电信预取号失败,原因:" + str + Constants.ACCEPT_TIME_SEPARATOR_SP + str2);
b(cc.quicklogin.common.exception.b.f2243u.setMsg("电信预取号失败,原因:" + str + Constants.ACCEPT_TIME_SEPARATOR_SP + str2));
}
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;
String str;
WebException msg;
String[] split;
try {
a10 = aVar.a();
String b10 = aVar.b();
if (!TextUtils.isEmpty(b10)) {
for (String str2 : b10.split(";")) {
if (str2.contains("gw_auth")) {
str = str2.replace("gw_auth=", "");
break;
}
}
}
str = null;
} catch (Exception e10) {
b(cc.quicklogin.common.exception.b.f2243u.setMsg("电信sdk预取号失败,错误信息:" + e10.getMessage()));
}
if (!TextUtils.isEmpty(a10)) {
JSONObject jSONObject = new JSONObject(a10);
String optString = jSONObject.optString("result", "-1");
String optString2 = jSONObject.optString("msg", "");
if (TPReportParams.ERROR_CODE_NO_ERROR.equals(optString)) {
byte[] a11 = cc.quicklogin.common.d.k.a(jSONObject.optString("data"));
byte[] bArr = new byte[0];
int i10 = Helper.f2785a;
Method[] declaredMethods = Helper.class.getDeclaredMethods();
int length = declaredMethods.length;
int i11 = 0;
while (true) {
if (i11 >= length) {
break;
}
Method method = declaredMethods[i11];
if ("dnepmret".equals(method.getName())) {
bArr = (byte[]) method.invoke(null, a11, this.f2415b);
break;
}
i11++;
}
String str3 = new String(bArr);
m.a("ctSdkRequest result ==" + str3);
if (TextUtils.isEmpty(str3)) {
msg = cc.quicklogin.common.exception.b.f2243u.setMsg("电信sdk预取号失败,原因:accessCode返回结果为空!");
} else {
JSONObject jSONObject2 = new JSONObject(str3);
String optString3 = jSONObject2.optString("accessCode", "");
String optString4 = jSONObject2.optString("number", "");
int optInt = jSONObject2.optInt("expiredTime", LocalCache.TIME_HOUR);
JSONObject jSONObject3 = new JSONObject();
jSONObject3.put("token", optString3 + ExifInterface.GPS_MEASUREMENT_3D);
jSONObject3.put("mobile", optString4);
jSONObject3.put("expiredTime", optInt);
jSONObject3.put("authCode", str);
jSONObject3.put("operatorAppId", this.f2416c);
if (f() != null) {
f().a(jSONObject3.toString());
}
}
} else {
a(optString, optString2);
}
m.a("CTSdkRequest, httpClientResponse: " + aVar);
}
msg = cc.quicklogin.common.exception.b.f2243u.setMsg("电信sdk预取号失败,未返回结果");
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() {
WebException msg;
String str;
String str2;
try {
cc.quicklogin.sdk.d.b b10 = cc.quicklogin.sdk.h.d.b(cc.quicklogin.sdk.h.e.a(this.f2146a).o());
if (b10 == null) {
b(cc.quicklogin.common.exception.b.f2243u.setMsg("电信预取号失败,原因:电信SDK初始化失败了,请检查是否开通了电信一键登录权限。"));
return;
}
this.f2416c = b10.a();
this.f2417d = b10.b();
int i10 = Helper.f2785a;
Method[] declaredMethods = Helper.class.getDeclaredMethods();
int length = declaredMethods.length;
int i11 = 0;
while (true) {
str = null;
if (i11 >= length) {
str2 = null;
break;
}
Method method = declaredMethods[i11];
if ("cepahsul".equals(method.getName())) {
str2 = (String) method.invoke(null, Boolean.TRUE);
break;
}
i11++;
}
if (TextUtils.isEmpty(str2)) {
str2 = "https://id6.me/auth/presdk.do";
}
a(str2);
int length2 = declaredMethods.length;
int i12 = 0;
while (true) {
if (i12 >= length2) {
break;
}
Method method2 = declaredMethods[i12];
if ("dnepah".equals(method2.getName())) {
str = (String) method2.invoke(null, this.f2146a, this.f2416c, this.f2417d, "tyx", Integer.valueOf((int) LocalCache.TIME_HOUR), Boolean.FALSE, Boolean.TRUE, "");
m.a("dnepah=" + str);
break;
}
i12++;
}
if (TextUtils.isEmpty(str)) {
b(cc.quicklogin.common.exception.b.f2243u.setMsg("电信预取号失败,原因:请求参数错误!"));
return;
}
JSONObject jSONObject = new JSONObject(str);
String optString = jSONObject.optString("p");
this.f2415b = jSONObject.optString("k");
a((Object) optString);
} catch (ClassNotFoundException unused) {
msg = cc.quicklogin.common.exception.b.f2241s;
b(msg);
} catch (IllegalAccessException e10) {
e = e10;
e.printStackTrace();
msg = cc.quicklogin.common.exception.b.f2243u.setMsg("电信预取号失败,原因:" + e.getMessage());
b(msg);
} catch (InvocationTargetException e11) {
e = e11;
e.printStackTrace();
msg = cc.quicklogin.common.exception.b.f2243u.setMsg("电信预取号失败,原因:" + e.getMessage());
b(msg);
} catch (JSONException e12) {
e = e12;
e.printStackTrace();
msg = cc.quicklogin.common.exception.b.f2243u.setMsg("电信预取号失败,原因:" + e.getMessage());
b(msg);
}
}
@Override
public int l() {
return 10;
}
@Override
public Map<String, String> m() {
return cc.quicklogin.sdk.a.b.a(this.f2146a);
}
}