星辰影院解锁vip v1.0.4版本的 MD5 值为:3d99bbcbb0d5d5e568b9f6134424c24e
以下内容为反编译后的 a.java 源代码,内容仅作参考
package com.iqiyi.psdk.base.iface;
import com.iqiyi.passportsdk.bean.SportMergeBean;
import com.iqiyi.passportsdk.utils.k;
import com.iqiyi.passportsdk.v.f;
import com.iqiyi.passportsdk.x.i;
import com.iqiyi.psdk.base.j.l;
import com.iqiyi.qyverificationcenter.bean.QYVerifyConstants;
import com.sensorsdata.analytics.android.sdk.data.adapter.DbParams;
import java.util.List;
import java.util.Map;
import org.json.JSONObject;
public class a {
public static class C0235a implements com.iqiyi.passportsdk.o.j.b<JSONObject> {
final f.d a;
final i f7533b;
C0235a(f.d dVar, i iVar) {
this.a = dVar;
this.f7533b = iVar;
}
@Override
public void b(JSONObject jSONObject) {
i iVar;
com.iqiyi.psdk.base.j.b.a("PBAPI--->", "exchangeSportXAuthCookie is : " + jSONObject);
String m = k.m(jSONObject, "code");
String m2 = k.m(jSONObject, "msg");
this.a.g0 = k.m(jSONObject, DbParams.KEY_DATA);
if (QYVerifyConstants.VerifyResponCode.kSuccess.equals(m) && (iVar = this.f7533b) != null) {
iVar.onSuccess();
return;
}
i iVar2 = this.f7533b;
if (iVar2 != null) {
iVar2.a(m, m2);
}
}
@Override
public void c(Object obj) {
i iVar = this.f7533b;
if (iVar != null) {
iVar.c();
}
}
}
public static class b implements com.iqiyi.passportsdk.o.j.b<JSONObject> {
final l a;
final com.iqiyi.passportsdk.o.j.b f7534b;
final String f7535c;
final String f7536d;
b(l lVar, com.iqiyi.passportsdk.o.j.b bVar, String str, String str2) {
this.a = lVar;
this.f7534b = bVar;
this.f7535c = str;
this.f7536d = str2;
}
@Override
public void b(JSONObject jSONObject) {
String m = k.m(jSONObject, "code");
String m2 = k.m(jSONObject, "msg");
this.a.l(m, m2);
com.iqiyi.psdk.base.j.d.f().r(m, m2, "check_account.action");
if (QYVerifyConstants.VerifyResponCode.kSuccess.equals(m)) {
com.iqiyi.psdk.base.j.e.p("");
boolean f2 = "A00302".equals(m2) ? true : k.f(jSONObject, DbParams.KEY_DATA, true);
com.iqiyi.passportsdk.o.j.b bVar = this.f7534b;
if (bVar != null) {
bVar.b(Boolean.valueOf(f2));
return;
}
return;
}
if (this.f7534b != null) {
if ("P00159".equals(m)) {
this.f7534b.c("P00159");
com.iqiyi.psdk.base.j.e.p("");
} else if ("P02040".equals(m)) {
com.iqiyi.passportsdk.utils.i.c(k.l(jSONObject, DbParams.KEY_DATA), this.f7535c, this.f7536d);
this.f7534b.c(m);
com.iqiyi.psdk.base.j.e.p("");
} else {
this.f7534b.c(m2);
com.iqiyi.psdk.base.j.e.m("", m, m2);
}
}
}
@Override
public void c(Object obj) {
com.iqiyi.psdk.base.j.c.b("", obj);
com.iqiyi.psdk.base.j.c.a("", obj, "check_account.action");
com.iqiyi.passportsdk.o.j.b bVar = this.f7534b;
if (bVar != null) {
bVar.c(obj);
}
}
}
static class c implements com.iqiyi.passportsdk.o.j.b<Map<String, List<com.iqiyi.passportsdk.bean.g>>> {
final com.iqiyi.passportsdk.x.a a;
c(com.iqiyi.passportsdk.x.a aVar) {
this.a = aVar;
}
@Override
public void b(Map<String, List<com.iqiyi.passportsdk.bean.g>> map) {
if (map != null) {
com.iqiyi.passportsdk.x.a aVar = this.a;
if (aVar != null) {
aVar.c(map);
return;
}
return;
}
com.iqiyi.passportsdk.x.a aVar2 = this.a;
if (aVar2 != null) {
aVar2.b();
}
}
@Override
public void c(Object obj) {
com.iqiyi.passportsdk.x.a aVar = this.a;
if (aVar != null) {
aVar.b();
}
}
}
public static class d implements com.iqiyi.passportsdk.o.j.b<JSONObject> {
d() {
}
@Override
public void b(JSONObject jSONObject) {
JSONObject l2;
com.iqiyi.psdk.base.j.b.a("PBAPI--->", "requestMobileAppKey result is : " + jSONObject);
if (!QYVerifyConstants.VerifyResponCode.kSuccess.equals(k.m(jSONObject, "code")) || (l2 = k.l(jSONObject, DbParams.KEY_DATA)) == null) {
return;
}
com.iqiyi.psdk.base.j.i.f(com.iqiyi.psdk.base.a.b(), l2);
com.iqiyi.psdk.base.j.h.b1(k.m(l2, "CmccConfig"));
com.iqiyi.psdk.base.j.h.U0(k.m(l2, "baiduLoginType"));
com.iqiyi.psdk.base.j.h.j2(k.g(l2, "AccountManage") == 1);
com.iqiyi.psdk.base.f.a.k("KEY_DNS_IP", k.m(l2, "fallback_ip"), "com.iqiyi.passportsdk.SharedPreferences");
com.iqiyi.psdk.base.j.h.t1(k.m(l2, "msg_tip"));
com.iqiyi.psdk.base.j.h.o1(k.m(l2, "white_url_list_s"));
com.iqiyi.psdk.base.f.a.i("no_verify_login", k.g(l2, "no_verify_login"), "com.iqiyi.passportsdk.SharedPreferences");
}
@Override
public void c(Object obj) {
com.iqiyi.psdk.base.j.b.a("PBAPI--->", "requestMobileAppKey result onFailed");
}
}
static class e implements com.iqiyi.passportsdk.o.j.b<JSONObject> {
final com.iqiyi.passportsdk.o.j.b a;
e(com.iqiyi.passportsdk.o.j.b bVar) {
this.a = bVar;
}
@Override
public void b(JSONObject jSONObject) {
if (QYVerifyConstants.VerifyResponCode.kSuccess.equals(k.m(jSONObject, "code"))) {
String m = k.m(jSONObject, "value");
com.iqiyi.psdk.base.j.h.t1(m);
com.iqiyi.passportsdk.o.j.b bVar = this.a;
if (bVar != null) {
bVar.b(m);
return;
}
return;
}
com.iqiyi.passportsdk.o.j.b bVar2 = this.a;
if (bVar2 != null) {
bVar2.c(null);
}
}
@Override
public void c(Object obj) {
com.iqiyi.psdk.base.j.b.a("PBAPI--->", "requestStrategy failed");
com.iqiyi.passportsdk.o.j.b bVar = this.a;
if (bVar != null) {
bVar.c(null);
}
}
}
static class f implements com.iqiyi.passportsdk.o.j.b<JSONObject> {
final com.iqiyi.passportsdk.o.j.b a;
f(com.iqiyi.passportsdk.o.j.b bVar) {
this.a = bVar;
}
@Override
public void b(JSONObject jSONObject) {
com.iqiyi.psdk.base.j.b.a("PBAPI--->", "queryUserAuthAppList result is : " + jSONObject);
String m = k.m(jSONObject, "code");
if (!QYVerifyConstants.VerifyResponCode.kSuccess.equals(m)) {
com.iqiyi.psdk.base.j.b.a("PBAPI--->", "queryUserAuthAppList result code is : " + m);
c(null);
return;
}
com.iqiyi.passportsdk.auth.a.d(k.e(k.l(jSONObject, DbParams.KEY_DATA), "apps"), true);
com.iqiyi.passportsdk.o.j.b bVar = this.a;
if (bVar != null) {
bVar.b(null);
}
}
@Override
public void c(Object obj) {
com.iqiyi.psdk.base.j.b.a("PBAPI--->", "queryUserAuthAppList result failed");
com.iqiyi.passportsdk.o.j.b bVar = this.a;
if (bVar != null) {
bVar.c(null);
}
}
}
static class g implements com.iqiyi.passportsdk.o.j.b<JSONObject> {
g() {
}
@Override
public void b(JSONObject jSONObject) {
com.iqiyi.psdk.base.j.b.a("PBAPI--->", "updateUserAppAuthStatus : " + jSONObject);
}
@Override
public void c(Object obj) {
com.iqiyi.psdk.base.j.b.a("PBAPI--->", "updateUserAppAuthStatus onFailed ");
}
}
static class h implements com.iqiyi.passportsdk.o.j.b<JSONObject> {
final i a;
h(i iVar) {
this.a = iVar;
}
@Override
public void b(JSONObject jSONObject) {
com.iqiyi.psdk.base.j.b.a("PBAPI--->", "sportMergeGetAuthCookie is : " + jSONObject);
String m = k.m(jSONObject, "code");
String m2 = k.m(jSONObject, "msg");
if (QYVerifyConstants.VerifyResponCode.kSuccess.equals(m)) {
com.iqiyi.psdk.base.i.b.F().g0(k.m(k.l(jSONObject, DbParams.KEY_DATA), "authcookie"), this.a);
} else {
i iVar = this.a;
if (iVar != null) {
iVar.a(m, m2);
}
}
}
@Override
public void c(Object obj) {
i iVar = this.a;
if (iVar != null) {
iVar.c();
}
}
}
public static void a(String str, String str2, com.iqiyi.passportsdk.o.j.b<Boolean> bVar) {
l e2 = l.e();
e2.m("psms", "check_account.action");
com.iqiyi.psdk.base.j.e.o("");
com.iqiyi.passportsdk.o.j.a<JSONObject> checkAccount = ((IPBAPI) com.iqiyi.psdk.base.a.i(IPBAPI.class)).checkAccount(str, str2, "1", 1);
checkAccount.d(new b(e2, bVar, str2, str));
com.iqiyi.psdk.base.a.j().f(checkAccount);
}
public static void b(f.d dVar, i iVar) {
com.iqiyi.passportsdk.o.j.a<JSONObject> exchangeSportXauthCookie = com.iqiyi.psdk.base.a.h().exchangeSportXauthCookie(dVar.n);
exchangeSportXauthCookie.d(new C0235a(dVar, iVar));
com.iqiyi.psdk.base.a.j().f(exchangeSportXauthCookie);
}
public static void c(int i2, com.iqiyi.passportsdk.x.a aVar) {
com.iqiyi.passportsdk.o.j.a<Map<String, List<com.iqiyi.passportsdk.bean.g>>> areaCode = com.iqiyi.psdk.base.a.h().getAreaCode(1, 1, i2);
areaCode.x(new com.iqiyi.passportsdk.iface.b.b(false));
areaCode.d(new c(aVar));
com.iqiyi.psdk.base.a.j().f(areaCode);
}
public static void d(String str, com.iqiyi.passportsdk.o.j.b<Void> bVar) {
com.iqiyi.passportsdk.o.j.a<JSONObject> queryAuthAppList = com.iqiyi.psdk.base.a.h().queryAuthAppList(str);
queryAuthAppList.A(1000);
queryAuthAppList.d(new f(bVar));
com.iqiyi.psdk.base.a.j().f(queryAuthAppList);
}
public static void e(com.iqiyi.passportsdk.o.j.b<String> bVar) {
com.iqiyi.psdk.base.a.j().f(com.iqiyi.passportsdk.o.j.a.e(JSONObject.class).v(0).B("https://puma-api.iqiyi.com/kestrel/fetch?key=passport-{msg-[all]}").d(new e(bVar)));
}
public static void f() {
com.iqiyi.passportsdk.o.j.a<JSONObject> mobileLoginAppKey = com.iqiyi.psdk.base.a.h().getMobileLoginAppKey(com.iqiyi.psdk.base.j.k.G());
mobileLoginAppKey.c();
mobileLoginAppKey.d(new d());
com.iqiyi.psdk.base.a.j().f(mobileLoginAppKey);
}
public static void g(i iVar) {
SportMergeBean A = com.iqiyi.psdk.base.i.a.d().A();
com.iqiyi.passportsdk.o.j.a<JSONObject> sportMergeLogin = com.iqiyi.psdk.base.a.h().sportMergeLogin(A.mergeConfirmToken, A.loginType, A.serviceId, A.requestType, A.authCode, com.iqiyi.psdk.base.j.k.h0(A.cellPhoneNum) ? com.iqiyi.psdk.base.h.b.d(A.userEnterPhoneNum) : "", com.iqiyi.psdk.base.j.k.h0(A.areaCode) ? A.userEnterAreaCode : "");
sportMergeLogin.d(new h(iVar));
com.iqiyi.psdk.base.a.j().f(sportMergeLogin);
}
public static void h(String str, String str2, int i2) {
com.iqiyi.passportsdk.o.j.a<JSONObject> updateAppAuthStatus = com.iqiyi.psdk.base.a.h().updateAppAuthStatus(str, str2, i2);
updateAppAuthStatus.d(new g());
com.iqiyi.psdk.base.a.j().f(updateAppAuthStatus);
}
}