星辰影院解锁vip v1.0.4版本的 MD5 值为:3d99bbcbb0d5d5e568b9f6134424c24e
以下内容为反编译后的 b.java 源代码,内容仅作参考
package com.iqiyi.passportsdk.thirdparty.i;
import com.iqiyi.passportsdk.v.f;
import com.iqiyi.psdk.base.j.k;
import com.iqiyi.qyverificationcenter.bean.QYVerifyConstants;
import com.sensorsdata.analytics.android.sdk.data.adapter.DbParams;
import org.json.JSONObject;
public class b extends com.iqiyi.passportsdk.q.a<f.d> {
public String r(String str, String str2) {
StringBuffer stringBuffer = new StringBuffer("https://passport.iqiyi.com/apis/thirdparty/xm_sso.action?");
stringBuffer.append("openid=");
stringBuffer.append(k.k(str));
stringBuffer.append("&");
stringBuffer.append("access_token=");
stringBuffer.append(k.k(str2));
stringBuffer.append("&");
stringBuffer.append("verifyPhone=");
stringBuffer.append("1");
stringBuffer.append("&");
stringBuffer.append("&");
return com.iqiyi.passportsdk.q.c.c(stringBuffer.toString());
}
@Override
public f.d a(JSONObject jSONObject) {
f.d dVar = new f.d();
if (jSONObject == null) {
return dVar;
}
String p = p(jSONObject, "code", null);
String p2 = p(jSONObject, "msg", null);
dVar.a = p;
dVar.f7006i = p2;
JSONObject n = n(jSONObject, DbParams.KEY_DATA);
p.hashCode();
char c2 = 65535;
switch (p.hashCode()) {
case -1958820887:
if (p.equals("P00801")) {
c2 = 0;
break;
}
break;
case -1958820885:
if (p.equals("P00803")) {
c2 = 1;
break;
}
break;
case -1958820881:
if (p.equals("P00807")) {
c2 = 2;
break;
}
break;
case -1958819772:
if (p.equals("P00950")) {
c2 = 3;
break;
}
break;
case -1958797785:
if (p.equals("P01118")) {
c2 = 4;
break;
}
break;
case 1906701455:
if (p.equals(QYVerifyConstants.VerifyResponCode.kSuccess)) {
c2 = 5;
break;
}
break;
}
switch (c2) {
case 0:
if (n != null) {
com.iqiyi.passportsdk.u.c.a().P0(p(n, QYVerifyConstants.PingbackKeys.kToken, ""), true);
com.iqiyi.passportsdk.u.c.a().O0(p(n, "phone", ""));
com.iqiyi.passportsdk.u.c.a().L0(p(n, "area_code", ""));
break;
}
break;
case 1:
if (n != null) {
com.iqiyi.passportsdk.u.c.a().P0(p(n, QYVerifyConstants.PingbackKeys.kToken, ""), true);
com.iqiyi.passportsdk.u.c.a().N0(p(n, "email", ""));
break;
}
break;
case 2:
if (n != null) {
com.iqiyi.passportsdk.u.c.a().H0(p(n, QYVerifyConstants.PingbackKeys.kToken, ""));
break;
}
break;
case 3:
com.iqiyi.psdk.base.k.a.f7556b.d(p, n);
break;
case 4:
if (n != null) {
com.iqiyi.passportsdk.u.c.a().Z0(p(n, QYVerifyConstants.PingbackKeys.kToken, ""));
break;
}
break;
case 5:
String p3 = p(n, "authcookie", null);
f.d dVar2 = new f.d();
dVar2.n = p3;
com.iqiyi.passportsdk.u.c.a().l1(dVar2);
break;
}
return dVar;
}
}