星辰影院解锁vip v1.0.4版本的 MD5 值为:3d99bbcbb0d5d5e568b9f6134424c24e
以下内容为反编译后的 c.java 源代码,内容仅作参考
package com.iqiyi.passportsdk.s;
import android.app.Activity;
import android.content.Intent;
import android.text.TextUtils;
import com.arthenica.reactnative.RNFFmpegModule;
import com.iqiyi.passportsdk.interflow.api.IInterflowApi;
import com.iqiyi.passportsdk.interflow.core.InterflowObj;
import com.iqiyi.passportsdk.utils.e;
import com.iqiyi.passportsdk.x.i;
import com.iqiyi.psdk.base.j.k;
import com.iqiyi.qyverificationcenter.bean.QYVerifyConstants;
import com.sensorsdata.analytics.android.sdk.data.adapter.DbParams;
import java.util.Map;
import java.util.TreeMap;
import org.json.JSONObject;
public class c {
public static class a implements com.iqiyi.passportsdk.o.j.b<JSONObject> {
final com.iqiyi.passportsdk.s.d.b a;
a(com.iqiyi.passportsdk.s.d.b bVar) {
this.a = bVar;
}
@Override
public void b(JSONObject jSONObject) {
JSONObject optJSONObject;
e.b("QYInterflow: ", "generate_opt result is : " + jSONObject);
if (QYVerifyConstants.VerifyResponCode.kSuccess.equals(jSONObject.optString("code")) && (optJSONObject = jSONObject.optJSONObject(DbParams.KEY_DATA)) != null) {
String optString = optJSONObject.optString("opt_key");
optJSONObject.optString("expire");
if (!TextUtils.isEmpty(optString)) {
this.a.b(optString);
return;
}
}
this.a.a();
}
@Override
public void c(Object obj) {
this.a.a();
}
}
static class b implements com.iqiyi.passportsdk.o.j.b<JSONObject> {
final i a;
b(i iVar) {
this.a = iVar;
}
@Override
public void b(JSONObject jSONObject) {
JSONObject optJSONObject;
com.iqiyi.psdk.base.j.b.b("verifyGameSign", "json:%s", jSONObject.toString());
int optInt = jSONObject.optInt("ret");
if (optInt == 200 && (optJSONObject = jSONObject.optJSONObject(DbParams.KEY_DATA)) != null) {
int optInt2 = optJSONObject.optInt("code");
if (optInt2 == 200) {
this.a.onSuccess();
return;
}
this.a.a(optInt2 + "", optJSONObject.optString(RNFFmpegModule.KEY_LOG_MESSAGE));
return;
}
this.a.a(optInt + "", jSONObject.optString("msg"));
}
@Override
public void c(Object obj) {
com.iqiyi.psdk.base.j.b.a("verifyGameSign", "onFailed");
this.a.c();
}
}
public static void a(int i2, com.iqiyi.passportsdk.s.d.b bVar) {
com.iqiyi.passportsdk.o.j.a<JSONObject> generate_opt = ((IInterflowApi) com.iqiyi.psdk.base.a.i(IInterflowApi.class)).generate_opt(com.iqiyi.psdk.base.a.m() ? com.iqiyi.psdk.base.b.c() : "", i2);
generate_opt.d(new a(bVar));
com.iqiyi.psdk.base.a.j().f(generate_opt);
}
public static void b(com.iqiyi.passportsdk.s.d.b bVar) {
a(0, bVar);
}
public static void c(Activity activity, String str) {
com.iqiyi.passportsdk.interflow.core.c a2 = com.iqiyi.passportsdk.interflow.core.c.a();
if (a2 != null && !k.h0(a2.f6712b)) {
Intent intent = new Intent();
intent.setPackage(a2.f6712b);
if (TextUtils.isEmpty(a2.f6714d)) {
intent.setClassName(a2.f6712b, "org.qiyi.android.video.ui.account.interflow.InterflowActivity");
} else {
intent.setClassName(a2.f6712b, a2.f6714d);
}
if (!TextUtils.isEmpty(str)) {
InterflowObj interflowObj = new InterflowObj();
interflowObj.interflowToken = com.iqiyi.passportsdk.s.e.a.f(str, a2.f6713c);
intent.putExtra("EXTRA_INTERFLOW_OBJ", interflowObj);
}
if (k.d(activity, intent)) {
activity.startActivity(intent);
}
com.iqiyi.psdk.base.j.b.b("InterflowSdk: ", "sendInterflowToken entryName:%s", a2.toString());
return;
}
com.iqiyi.psdk.base.j.b.a("InterflowSdk: ", "packName is null ,so return");
}
public static void d(String str, String str2, i iVar) {
TreeMap treeMap = new TreeMap();
treeMap.put("packageName", str);
treeMap.put("packageMd5", str2);
treeMap.put(RNFFmpegModule.KEY_STAT_TIME, (System.currentTimeMillis() / 1000) + "");
treeMap.put("sign_key", "MGmzYE6RkHZxACO17LYvIaNKOUgv5qPGG+kiw49");
StringBuilder sb = new StringBuilder();
for (Map.Entry entry : treeMap.entrySet()) {
String str3 = (String) entry.getKey();
String str4 = (String) entry.getValue();
if (!TextUtils.isEmpty(str4)) {
sb.append(str3);
sb.append("=");
sb.append(str4);
sb.append("&");
}
}
String sb2 = sb.deleteCharAt(sb.length() - 1).toString();
com.iqiyi.psdk.base.j.b.b("verifyGameSign", "beforeMD5:%s", sb2);
treeMap.put(QYVerifyConstants.PingbackKeys.kToken, k.A0(sb2));
treeMap.remove("sign_key");
com.iqiyi.psdk.base.a.j().f(com.iqiyi.passportsdk.o.j.a.e(JSONObject.class).B("https://gameapi.if.iqiyi.com/gameapk/GameApk.GameApkAuth").v(1).f().w(treeMap).d(new b(iVar)));
}
}