热汗舞蹈 v1.24.1.0版本的 MD5 值为:f1dc6ef07903515a73f51f41f372123e
以下内容为反编译后的 k.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 cn.jpush.android.local.JPushConstants;
import com.tencent.thumbplayer.tplayer.plugins.report.TPReportParams;
import com.xiaomi.mipush.sdk.Constants;
import java.util.Random;
import org.json.JSONException;
import org.json.JSONObject;
public class k extends cc.quicklogin.common.a.d {
private static final Random f2432d = new Random();
public String f2433b;
private String[] f2434c;
private boolean f2435e;
public k(Context context, JSONObject jSONObject, boolean z10, cc.quicklogin.common.a.h hVar) {
super(context, "", jSONObject, hVar);
String str;
this.f2435e = z10;
if (z10) {
cc.quicklogin.sdk.d.f d10 = cc.quicklogin.sdk.h.d.d(cc.quicklogin.sdk.h.e.a(context).r());
if (d10 != null) {
String e10 = d10.e();
if (TextUtils.isEmpty(e10)) {
this.f2434c = new String[]{"210.22.123.92:443", "116.128.209.136:443"};
} else {
this.f2434c = e10.split(Constants.ACCEPT_TIME_SEPARATOR_SP);
}
}
StringBuilder sb2 = new StringBuilder();
sb2.append(JPushConstants.HTTPS_PRE);
String[] strArr = this.f2434c;
sb2.append(strArr[f2432d.nextInt(strArr.length)]);
sb2.append("/openapi/netauth/precheck/u3");
str = sb2.toString();
} else {
str = "https://opencloud.wostore.cn/openapi/netauth/precheck/u3";
}
a(str);
}
@Override
public void a(cc.quicklogin.common.a.a aVar) {
String a10 = aVar.a();
if (TextUtils.isEmpty(a10)) {
throw cc.quicklogin.common.exception.b.f2243u.setMsg("预取号失败,预取号返回结果为空");
}
try {
JSONObject jSONObject = new JSONObject(a10);
String optString = jSONObject.optString("code");
String optString2 = jSONObject.optString("msg", optString + "");
if (!TPReportParams.ERROR_CODE_NO_ERROR.equals(optString)) {
WebException webException = cc.quicklogin.common.exception.b.f2243u;
throw webException.setMsg("预取号失败,无结果返回,原因:" + optString2);
}
JSONObject optJSONObject = jSONObject.optJSONObject("data");
if (optJSONObject == null) {
WebException webException2 = cc.quicklogin.common.exception.b.f2243u;
throw webException2.setMsg("预取号失败,无数据返回,原因:" + optString2);
}
String optString3 = optJSONObject.optString("accessCode");
String optString4 = optJSONObject.optString("mobile");
String optString5 = optJSONObject.optString("operatorType");
if (f() != null) {
JSONObject jSONObject2 = new JSONObject();
jSONObject2.put("token", optString3);
jSONObject2.put("mobile", optString4);
jSONObject2.put("operatorTypeStr", optString5);
jSONObject2.put("operatorAppId", this.f2433b);
f().a(jSONObject2.toString());
}
} catch (JSONException unused) {
throw cc.quicklogin.common.exception.b.f2243u.setMsg("预取号失败,json解析异常");
}
}
@Override
public void a(WebException webException) {
throw webException;
}
@Override
public boolean a() {
return true;
}
@Override
public boolean g() {
return true;
}
@Override
public String i() {
if (this.f2435e) {
return "opencloud.wostore.cn";
}
return null;
}
@Override
public void k() {
JSONObject jSONObject = new JSONObject();
cc.quicklogin.sdk.d.c a10 = cc.quicklogin.sdk.h.d.a(cc.quicklogin.sdk.h.e.a(this.f2146a).h());
if (a10 == null) {
m.a("未获取到配置信息,预取号使用SDK默认配置信息");
throw cc.quicklogin.common.exception.b.f2227e;
}
long currentTimeMillis = System.currentTimeMillis();
String e10 = a10.e(3);
String f10 = a10.f(3);
this.f2433b = a10.c(3);
String g10 = a10.g(3);
String h10 = a10.h(3);
String d10 = a10.d(3);
String i10 = a10.i(3);
try {
jSONObject.put("timestamp", currentTimeMillis);
jSONObject.put("callback", h10);
jSONObject.put("client_id", this.f2433b);
jSONObject.put("client_type", e10);
jSONObject.put("version", f10);
jSONObject.put("format", g10);
jSONObject.put("business_type", d10);
jSONObject.put("sign", cc.quicklogin.sdk.h.g.a(d10 + h10 + this.f2433b + e10 + g10 + currentTimeMillis + f10, i10, cc.quicklogin.sdk.h.h.SHA1withRSA));
a(jSONObject);
} catch (JSONException unused) {
throw cc.quicklogin.common.exception.b.f2243u.setMsg("json 存储异常");
} catch (Exception unused2) {
throw cc.quicklogin.common.exception.b.f2235m.setMsg("签名异常");
}
}
@Override
public int l() {
return 10;
}
}