OurPlay v5.5.9版本的 MD5 值为:d4e139798f4c2243a1145c8af5e21046
以下内容为反编译后的 r.java 源代码,内容仅作参考
package com.excelliance.kxqp.util;
import android.app.Activity;
import android.content.Context;
import android.content.SharedPreferences;
import android.text.TextUtils;
import android.util.Log;
import androidx.fragment.app.FragmentActivity;
import com.excean.bytedancebi.bean.BiSendContentEvent;
import com.excean.ggspace.main.R;
import com.excelliance.kxqp.gs.thpool.tp;
import com.excelliance.kxqp.gs.util.av;
import com.excelliance.kxqp.gs.util.bd;
import com.excelliance.kxqp.gs.util.bx;
import com.excelliance.kxqp.gs.util.cd;
import com.excelliance.kxqp.util.ai;
import org.json.JSONObject;
public class r {
public static void a(final FragmentActivity fragmentActivity, Runnable runnable, boolean z, final String str) {
boolean b2 = bx.a().b(fragmentActivity);
if (b2 && bx.a().d(fragmentActivity)) {
if (!bx.a().e(fragmentActivity)) {
tp.i(new Runnable() {
@Override
public void run() {
com.excelliance.kxqp.gs.util.af.a(FragmentActivity.this, str, FragmentActivity.this.getString(R.string.do_not_sell_game_accout_to_young_people_v2));
}
});
return;
} else if (z) {
runnable.run();
return;
} else {
io.reactivex.g.a.b().a(runnable);
return;
}
}
if (!b2 && bx.a().g(fragmentActivity)) {
if (!bx.a().h(fragmentActivity)) {
tp.i(new Runnable() {
@Override
public void run() {
com.excelliance.kxqp.gs.util.af.a(FragmentActivity.this, str, FragmentActivity.this.getString(R.string.do_not_sell_game_accout_to_young_people_v2));
}
});
return;
} else if (z) {
runnable.run();
return;
} else {
io.reactivex.g.a.b().a(runnable);
return;
}
}
tp.i(new AnonymousClass3(fragmentActivity, z, runnable, str));
}
public static class AnonymousClass3 implements Runnable {
final FragmentActivity f15085a;
final boolean f15086b;
final Runnable c;
final String d;
AnonymousClass3(FragmentActivity fragmentActivity, boolean z, Runnable runnable, String str) {
this.f15085a = fragmentActivity;
this.f15086b = z;
this.c = runnable;
this.d = str;
}
class AnonymousClass1 implements ai.b {
@Override
public void run() {
}
AnonymousClass1() {
}
@Override
public void a(final String str, final String str2) {
tp.f(new Runnable() {
@Override
public void run() {
try {
bx a2 = bx.a();
String a3 = a2.a(AnonymousClass3.this.f15085a);
JSONObject jSONObject = new JSONObject();
jSONObject.put("rid", a3);
jSONObject.put("name", str);
jSONObject.put("idCard", str2);
jSONObject.put("aid", av.a().a(AnonymousClass3.this.f15085a));
String c = bd.c("https://api.ourplay.com.cn/user/verify", jSONObject.toString());
Log.d("AntAddictionHelper", "run: response:" + c);
if (!TextUtils.isEmpty(c)) {
JSONObject jSONObject2 = new JSONObject(c);
int optInt = jSONObject2.optInt("code");
final String optString = jSONObject2.optString("msg");
int optInt2 = jSONObject2.optJSONObject("data").optInt("isAdult");
if (optInt == 0) {
if (a2.b(AnonymousClass3.this.f15085a)) {
SharedPreferences sharedPreferences = AnonymousClass3.this.f15085a.getSharedPreferences("USERINFO", 0);
bx a4 = bx.a();
a4.a(sharedPreferences, "USER_REAL_NAME_VERIFY", 1);
a4.a(sharedPreferences, "USER_IS_ADULT", optInt2);
a4.b(sharedPreferences, "USER_REAL_NAME", str);
a4.b(sharedPreferences, "USER_ID_NUMBER", str2);
} else {
SharedPreferences sharedPreferences2 = AnonymousClass3.this.f15085a.getSharedPreferences("USERINFO", 0);
bx a5 = bx.a();
a5.a(sharedPreferences2, "DEVICE_ID_VERIFY", 1);
a5.b(sharedPreferences2, "DEVICE_REAL_NAME", str);
a5.b(sharedPreferences2, "DEVICE_ID_NUMBER", str2);
a5.a(sharedPreferences2, "DEVICE_IS_ADULT", optInt2);
}
tp.i(new Runnable() {
@Override
public void run() {
ai.a().c();
BiSendContentEvent biSendContentEvent = new BiSendContentEvent();
biSendContentEvent.content_type = "实名认证";
com.excelliance.kxqp.gs.g.c.a().a(biSendContentEvent);
ai.a();
ai.b(AnonymousClass3.this.f15085a);
if (AnonymousClass3.this.f15086b) {
AnonymousClass3.this.c.run();
}
}
});
if (AnonymousClass3.this.f15086b) {
return;
}
io.reactivex.g.a.b().a(AnonymousClass3.this.c);
return;
}
tp.i(new Runnable() {
@Override
public void run() {
ai.a().a((Activity) AnonymousClass3.this.f15085a, optString);
if (cd.a(optString)) {
ai.a().a((Context) AnonymousClass3.this.f15085a, "启动页");
} else {
ai.a().a(AnonymousClass3.this.f15085a, "启动页", optString);
}
}
});
return;
}
tp.i(new Runnable() {
@Override
public void run() {
ai.a().a((Activity) AnonymousClass3.this.f15085a, "");
ai.a().a((Context) AnonymousClass3.this.f15085a, "启动页");
}
});
} catch (Exception e) {
e.printStackTrace();
}
}
});
}
}
@Override
public void run() {
ai.a().a((Activity) this.f15085a, (ai.b) new AnonymousClass1(), true, this.d);
}
}
}