秦华影视 v1.0.0版本的 MD5 值为:90520322e40df4849cf4989ab6339524
以下内容为反编译后的 wb2.java 源代码,内容仅作参考
package p.a.y.e.a.s.e.net;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.text.TextUtils;
import android.util.Base64;
import com.alipay.sdk.app.OpenAuthTask;
import com.tencent.open.utils.HttpUtils;
import org.json.JSONObject;
import p.a.y.e.a.s.e.net.gb2;
public class wb2 extends gb2 {
public static final String lite_byte = "fopen_id";
public static final String lite_case = "friend_label";
public static final String lite_char = "add_msg";
public static final String lite_else = "unionid";
public static final String lite_goto = "union_name";
public static final String lite_long = "zoneid";
public static final String lite_this = "signature";
public class a implements ld2 {
public final ld2 lite_do;
public a(ld2 ld2Var) {
this.lite_do = ld2Var;
}
@Override
public void lite_do(nd2 nd2Var) {
ic2.lite_const("openSDK_LOG.GameAppOperation", "-->unbindQQGroup, error: " + nd2Var);
ld2 ld2Var = this.lite_do;
if (ld2Var != null) {
ld2Var.lite_do(nd2Var);
}
}
@Override
public void lite_if(Object obj) {
ic2.lite_float("openSDK_LOG.GameAppOperation", "-->unbind group resp is: " + obj);
if (obj == null) {
ld2 ld2Var = this.lite_do;
if (ld2Var != null) {
r5.q(OpenAuthTask.lite_char, "服务端错误,请稍后重试", "资格检查回包为null。", ld2Var);
return;
}
return;
}
JSONObject jSONObject = (JSONObject) obj;
ld2 ld2Var2 = this.lite_do;
if (ld2Var2 != null) {
ld2Var2.lite_if(jSONObject);
}
}
@Override
public void onCancel() {
}
}
public class b implements ld2 {
public final ld2 lite_do;
public final Intent lite_for;
public final Activity lite_if;
public b(ld2 ld2Var, Activity activity, Intent intent) {
this.lite_do = ld2Var;
this.lite_if = activity;
this.lite_for = intent;
}
@Override
public void lite_do(nd2 nd2Var) {
ic2.lite_const("openSDK_LOG.GameAppOperation", "-->joinQQGroup, error: " + nd2Var);
ld2 ld2Var = this.lite_do;
if (ld2Var != null) {
ld2Var.lite_do(nd2Var);
}
}
@Override
public void lite_if(Object obj) {
ic2.lite_float("openSDK_LOG.GameAppOperation", "-->join group resp is: " + obj);
if (obj == null) {
ld2 ld2Var = this.lite_do;
if (ld2Var != null) {
r5.q(OpenAuthTask.lite_char, "服务端错误,请稍后重试", "资格检查回包为null。", ld2Var);
return;
}
return;
}
if (((JSONObject) obj).optInt("bind") == 1) {
try {
wb2.this.lite_int(this.lite_if, hb2.s0, this.lite_for, false);
return;
} catch (Exception e) {
ic2.lite_char("openSDK_LOG.GameAppOperation", "-->join group, start activity exception.", e);
wb2.this.lite_this(this.lite_if);
return;
}
}
ld2 ld2Var2 = this.lite_do;
if (ld2Var2 != null) {
r5.q(3003, "该组织未绑群,无法加入", "该组织未绑群,无法加入。", ld2Var2);
}
}
@Override
public void onCancel() {
}
}
public class c implements ld2 {
public final ld2 lite_do;
public final Intent lite_for;
public final Activity lite_if;
public c(ld2 ld2Var, Activity activity, Intent intent) {
this.lite_do = ld2Var;
this.lite_if = activity;
this.lite_for = intent;
}
@Override
public void lite_do(nd2 nd2Var) {
ic2.lite_const("openSDK_LOG.GameAppOperation", "-->bindQQGroup, error: " + nd2Var);
ld2 ld2Var = this.lite_do;
if (ld2Var != null) {
ld2Var.lite_do(nd2Var);
}
}
@Override
public void lite_if(Object obj) {
ic2.lite_float("openSDK_LOG.GameAppOperation", "-->bind group resp is: " + obj);
if (obj == null) {
ld2 ld2Var = this.lite_do;
if (ld2Var != null) {
r5.q(OpenAuthTask.lite_char, "服务端错误,请稍后重试", "资格检查回包为null。", ld2Var);
return;
}
return;
}
if (((JSONObject) obj).optInt("bind") != 1) {
try {
wb2.this.lite_int(this.lite_if, hb2.t0, this.lite_for, false);
return;
} catch (Exception e) {
ic2.lite_char("openSDK_LOG.GameAppOperation", "-->bind group, start activity exception.", e);
wb2.this.lite_this(this.lite_if);
return;
}
}
ld2 ld2Var2 = this.lite_do;
if (ld2Var2 != null) {
r5.q(3002, "该群已绑定!", "绑定过的群不能再次绑定。", ld2Var2);
}
ic2.lite_long("openSDK_LOG.GameAppOperation", "-->bindQQGroup() binded return.");
}
@Override
public void onCancel() {
}
}
public wb2(za2 za2Var) {
super(za2Var);
}
public void lite_this(Activity activity) {
lite_void(activity, "");
}
private void lite_void(Activity activity, String str) {
new xb2(activity, "", lite_for(str), null, this.lite_if).show();
}
public void lite_const(Activity activity, String str, String str2, ld2 ld2Var) {
ic2.lite_long("openSDK_LOG.GameAppOperation", "-->bindQQGroup() -- start");
if (activity == null) {
ic2.lite_case("openSDK_LOG.GameAppOperation", "-->bindQQGroup, activity is empty.");
if (ld2Var != null) {
r5.q(1001, "param acitivty is null", "activity param of api can not be null.", ld2Var);
return;
}
return;
}
StringBuffer stringBuffer = new StringBuffer("mqqapi://opensdk/bind_group?src_type=app&version=1");
String lite_new = this.lite_if.lite_new();
if (TextUtils.isEmpty(lite_new)) {
ic2.lite_case("openSDK_LOG.GameAppOperation", "-->bindQQGroup, appId is empty.");
if (ld2Var != null) {
r5.q(1003, "appid is null", "please login.", ld2Var);
return;
}
return;
}
String lite_case2 = this.lite_if.lite_case();
if (TextUtils.isEmpty(lite_case2)) {
ic2.lite_case("openSDK_LOG.GameAppOperation", "-->bindQQGroup, openid is empty.");
if (ld2Var != null) {
r5.q(1004, "openid params is null", "please login.", ld2Var);
return;
}
return;
}
String lite_case3 = dd2.lite_case(activity);
if (TextUtils.isEmpty(lite_case3)) {
ic2.lite_case("openSDK_LOG.GameAppOperation", "-->bindQQGroup, appname is empty.");
if (ld2Var != null) {
r5.q(1005, "appName params is null", "", ld2Var);
return;
}
return;
}
if (TextUtils.isEmpty(str)) {
ic2.lite_case("openSDK_LOG.GameAppOperation", "-->bindQQGroup, organization id is empty.");
if (ld2Var != null) {
r5.q(1006, "organizationId params is null", "", ld2Var);
return;
}
return;
}
if (TextUtils.isEmpty(str2)) {
ic2.lite_case("openSDK_LOG.GameAppOperation", "-->bindQQGroup, organization name is empty.");
if (ld2Var != null) {
r5.q(1007, "organizationName params is null", "", ld2Var);
return;
}
return;
}
StringBuilder b2 = r5.b("&app_name=");
b2.append(Base64.encodeToString(dd2.lite_implements(lite_case3), 2));
stringBuffer.append(b2.toString());
stringBuffer.append("&organization_id=" + Base64.encodeToString(dd2.lite_implements(str), 2));
stringBuffer.append("&organization_name=" + Base64.encodeToString(dd2.lite_implements(str2), 2));
stringBuffer.append("&openid=" + Base64.encodeToString(dd2.lite_implements(lite_case2), 2));
stringBuffer.append("&appid=" + Base64.encodeToString(dd2.lite_implements(lite_new), 2));
stringBuffer.append("&sdk_version=" + Base64.encodeToString(dd2.lite_implements(hb2.lite_else), 2));
ic2.lite_const("openSDK_LOG.GameAppOperation", "-->bindQQGroup, url: " + stringBuffer.toString());
Uri parse = Uri.parse(stringBuffer.toString());
Intent intent = new Intent("android.intent.action.VIEW");
intent.setData(parse);
if (lite_case(intent) && ad2.lite_void(activity, "8.1.0") >= 0) {
c cVar = new c(ld2Var, activity, intent);
Bundle lite_if = lite_if();
lite_if.putString("appid", lite_new);
lite_if.putString("orgid", str);
HttpUtils.lite_long(this.lite_if, activity, "https://openmobile.qq.com/cgi-bin/qunopensdk/check_group", lite_if, hb2.G, new gb2.a(cVar));
ic2.lite_long("openSDK_LOG.GameAppOperation", "-->bindQQGroup() do.");
return;
}
ic2.lite_float("openSDK_LOG.GameAppOperation", "-->bind group, there is no activity, show download page.");
lite_this(activity);
}
public void lite_final(Activity activity, String str, ld2 ld2Var) {
ic2.lite_long("openSDK_LOG.GameAppOperation", "joinQQGroup()");
if (activity == null) {
ic2.lite_case("openSDK_LOG.GameAppOperation", "-->joinGroup, activity is empty.");
if (ld2Var != null) {
r5.q(1001, "param acitivty is null", "activity param of api can not be null.", ld2Var);
return;
}
return;
}
if (TextUtils.isEmpty(str)) {
ic2.lite_case("openSDK_LOG.GameAppOperation", "-->joinGroup, params is empty.");
if (ld2Var != null) {
r5.q(1006, "param organizationId is null", "organizationId param of api can not be null.", ld2Var);
return;
}
return;
}
Intent intent = new Intent();
String lite_new = this.lite_if.lite_new();
if (TextUtils.isEmpty(lite_new)) {
ic2.lite_case("openSDK_LOG.GameAppOperation", "-->joinGroup, appid is empty.");
if (ld2Var != null) {
r5.q(1003, "appid is null", "appid is null, please login.", ld2Var);
return;
}
return;
}
String lite_case2 = this.lite_if.lite_case();
if (TextUtils.isEmpty(lite_case2)) {
ic2.lite_case("openSDK_LOG.GameAppOperation", "-->joinGroup, openid is empty.");
if (ld2Var != null) {
r5.q(1004, "openid is null", "openid is null, please login.", ld2Var);
return;
}
return;
}
StringBuffer stringBuffer = new StringBuffer("mqqapi://opensdk/join_group?src_type=app&version=1");
StringBuilder b2 = r5.b("&openid=");
b2.append(Base64.encodeToString(dd2.lite_implements(lite_case2), 2));
stringBuffer.append(b2.toString());
stringBuffer.append("&appid=" + Base64.encodeToString(dd2.lite_implements(lite_new), 2));
stringBuffer.append("&organization_id=" + Base64.encodeToString(dd2.lite_implements(str), 2));
stringBuffer.append("&sdk_version=" + Base64.encodeToString(dd2.lite_implements(hb2.lite_else), 2));
intent.setData(Uri.parse(stringBuffer.toString()));
if (lite_case(intent) && ad2.lite_void(activity, "8.1.0") >= 0) {
b bVar = new b(ld2Var, activity, intent);
Bundle lite_if = lite_if();
lite_if.putString("appid", lite_new);
lite_if.putString("orgid", str);
HttpUtils.lite_long(this.lite_if, activity, "https://openmobile.qq.com/cgi-bin/qunopensdk/check_group", lite_if, hb2.G, new gb2.a(bVar));
ic2.lite_long("openSDK_LOG.GameAppOperation", "-->joinQQGroup() do.");
return;
}
ic2.lite_float("openSDK_LOG.GameAppOperation", "-->bind group, there is no activity, show download page.");
lite_this(activity);
}
public void lite_float(Activity activity, Bundle bundle) {
ic2.lite_long("openSDK_LOG.GameAppOperation", "-->makeFriend() -- start");
if (bundle == null) {
ic2.lite_case("openSDK_LOG.GameAppOperation", "-->makeFriend params is null");
bc2.lite_do().lite_for(this.lite_if.lite_case(), this.lite_if.lite_new(), hb2.o1, "14", "18", "1");
return;
}
String string = bundle.getString(lite_byte);
if (TextUtils.isEmpty(string)) {
ic2.lite_case("openSDK_LOG.GameAppOperation", "-->make friend, fOpenid is empty.");
bc2.lite_do().lite_for(this.lite_if.lite_case(), this.lite_if.lite_new(), hb2.o1, "14", "18", "1");
return;
}
String string2 = bundle.getString(lite_case);
String string3 = bundle.getString(lite_char);
String lite_case2 = dd2.lite_case(activity);
String lite_case3 = this.lite_if.lite_case();
String lite_new = this.lite_if.lite_new();
StringBuilder j = r5.j("-->make friend, fOpenid: ", string, " | label: ", string2, " | message: ");
r5.L(j, string3, " | openid: ", lite_case3, " | appid:");
j.append(lite_new);
ic2.lite_const("openSDK_LOG.GameAppOperation", j.toString());
StringBuffer stringBuffer = new StringBuffer("mqqapi://gamesdk/add_friend?src_type=app&version=1");
StringBuilder b2 = r5.b("&fopen_id=");
b2.append(Base64.encodeToString(dd2.lite_implements(string), 2));
stringBuffer.append(b2.toString());
if (!TextUtils.isEmpty(lite_case3)) {
r5.A(lite_case3, 2, r5.b("&open_id="), stringBuffer);
}
if (!TextUtils.isEmpty(lite_new)) {
stringBuffer.append("&app_id=" + lite_new);
}
if (!TextUtils.isEmpty(string2)) {
r5.A(string2, 2, r5.b("&friend_label="), stringBuffer);
}
if (!TextUtils.isEmpty(string3)) {
r5.A(string3, 2, r5.b("&add_msg="), stringBuffer);
}
if (!TextUtils.isEmpty(lite_case2)) {
r5.A(lite_case2, 2, r5.b("&app_name="), stringBuffer);
}
StringBuilder b3 = r5.b("-->make friend, url: ");
b3.append(stringBuffer.toString());
ic2.lite_const("openSDK_LOG.GameAppOperation", b3.toString());
Intent intent = new Intent("android.intent.action.VIEW");
intent.setData(Uri.parse(stringBuffer.toString()));
if (lite_case(intent) && !dd2.lite_continue(activity, "5.1.0")) {
ic2.lite_long("openSDK_LOG.GameAppOperation", "-->makeFriend target activity found, qqver greater than 5.1.0");
try {
activity.startActivity(intent);
bc2.lite_do().lite_for(this.lite_if.lite_case(), this.lite_if.lite_new(), hb2.o1, "14", "18", "0");
} catch (Exception e) {
ic2.lite_char("openSDK_LOG.GameAppOperation", "-->make friend, start activity exception.", e);
lite_this(activity);
bc2.lite_do().lite_for(this.lite_if.lite_case(), this.lite_if.lite_new(), hb2.o1, "14", "18", "1");
}
} else {
ic2.lite_float("openSDK_LOG.GameAppOperation", "-->make friend, there is no activity.");
lite_this(activity);
bc2.lite_do().lite_for(this.lite_if.lite_case(), this.lite_if.lite_new(), hb2.o1, "14", "18", "1");
}
ic2.lite_long("openSDK_LOG.GameAppOperation", "-->makeFriend() -- end");
}
public void lite_short(Context context, String str, ld2 ld2Var) {
ic2.lite_long("openSDK_LOG.GameAppOperation", "unBindQQGroup()");
if (context == null) {
ic2.lite_case("openSDK_LOG.GameAppOperation", "-->uinBindGroup, activity is empty.");
if (ld2Var != null) {
r5.q(1001, "param acitivty is null", "activity param of api can not be null.", ld2Var);
return;
}
return;
}
if (TextUtils.isEmpty(str)) {
ic2.lite_case("openSDK_LOG.GameAppOperation", "-->unBindGroup, params is empty.");
if (ld2Var != null) {
r5.q(1006, "param organizationId is null", "organizationId param of api can not be null.", ld2Var);
return;
}
return;
}
String lite_new = this.lite_if.lite_new();
if (TextUtils.isEmpty(lite_new)) {
ic2.lite_case("openSDK_LOG.GameAppOperation", "-->unBindGroup, appid is empty.");
if (ld2Var != null) {
r5.q(1003, "param appId is null", "appid is null please login.", ld2Var);
return;
}
return;
}
a aVar = new a(ld2Var);
Bundle lite_if = lite_if();
lite_if.putString("appid", lite_new);
lite_if.putString("orgid", str);
HttpUtils.lite_long(this.lite_if, context, "https://openmobile.qq.com/cgi-bin/qunopensdk/unbind", lite_if, hb2.G, new gb2.a(aVar));
ic2.lite_long("openSDK_LOG.GameAppOperation", "-->unBindQQGroup() do.");
}
}