暗网解密 v2.0.4版本的 MD5 值为:d3a04548fef88e775cbe4c3c6e7d81ad
以下内容为反编译后的 y0.java 源代码,内容仅作参考
package c.o.a.m;
import android.content.SharedPreferences;
import android.text.TextUtils;
import com.alibaba.fastjson.JSON;
import com.spaceseven.qidu.MyApplication;
import com.spaceseven.qidu.bean.ChatGirlDetailBean;
import com.spaceseven.qidu.bean.DatingGirlDetailBean;
import com.spaceseven.qidu.bean.PostListBean;
import com.spaceseven.qidu.bean.VideoBean;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
public class y0 {
public static y0 f6379a;
public SharedPreferences f6380b = MyApplication.a().getSharedPreferences("QD_NAME", 0);
public static y0 i() {
if (f6379a == null) {
synchronized (y0.class) {
if (f6379a == null) {
f6379a = new y0();
}
}
}
return f6379a;
}
public void A(String str) {
H("device_id", str);
}
public void B(VideoBean videoBean) {
try {
if (videoBean.getId() == 0) {
return;
}
ArrayList arrayList = new ArrayList();
String j = j();
if (!TextUtils.isEmpty(j)) {
arrayList.addAll(JSON.parseArray(j, VideoBean.class));
}
if (l0.b(arrayList)) {
for (int size = arrayList.size() - 1; size >= 0; size--) {
if (((VideoBean) arrayList.get(size)).getId() == videoBean.getId()) {
arrayList.remove(size);
}
}
}
arrayList.add(0, videoBean);
if (arrayList.size() > 30) {
arrayList.remove(30);
}
H("key_long_video_history", JSON.toJSONString(arrayList));
} catch (Exception e2) {
e2.printStackTrace();
}
}
public void C(ChatGirlDetailBean chatGirlDetailBean) {
try {
ArrayList arrayList = new ArrayList();
String k = k();
if (!TextUtils.isEmpty(k)) {
arrayList.addAll(JSON.parseArray(k, ChatGirlDetailBean.class));
}
if (l0.b(arrayList)) {
for (int size = arrayList.size() - 1; size >= 0; size--) {
if (((ChatGirlDetailBean) arrayList.get(size)).getId() == chatGirlDetailBean.getId()) {
arrayList.remove(size);
}
}
}
arrayList.add(0, chatGirlDetailBean);
if (arrayList.size() > 30) {
arrayList.remove(30);
}
H("key_nude_chat_history", JSON.toJSONString(arrayList));
} catch (Exception e2) {
e2.printStackTrace();
}
}
public void D(String str) {
H("key_open_screen_ad", str);
}
public void E(String str) {
try {
String n = n();
if (!TextUtils.isEmpty(n)) {
ArrayList arrayList = new ArrayList(Arrays.asList(n.split(",")));
arrayList.remove(str);
StringBuilder sb = new StringBuilder();
sb.append(str);
sb.append(",");
for (int i = 0; i < arrayList.size(); i++) {
String str2 = (String) arrayList.get(i);
if (i == arrayList.size() - 1) {
sb.append(str2);
} else {
sb.append(str2);
sb.append(",");
}
}
H("key_search_history", sb.toString());
return;
}
H("key_search_history", str);
} catch (Exception e2) {
e2.printStackTrace();
}
}
public void F(VideoBean videoBean) {
try {
ArrayList arrayList = new ArrayList();
String p = p();
if (!TextUtils.isEmpty(p)) {
arrayList.addAll(JSON.parseArray(p, VideoBean.class));
}
if (l0.b(arrayList)) {
for (int size = arrayList.size() - 1; size >= 0; size--) {
if (((VideoBean) arrayList.get(size)).getId() == videoBean.getId()) {
arrayList.remove(size);
}
}
}
arrayList.add(0, videoBean);
if (arrayList.size() > 30) {
arrayList.remove(30);
}
H("key_short_video_history", JSON.toJSONString(arrayList));
} catch (Exception e2) {
e2.printStackTrace();
}
}
public void G(String str) {
H("spare_url", str);
}
public void H(String str, String str2) {
SharedPreferences sharedPreferences = this.f6380b;
if (sharedPreferences != null) {
SharedPreferences.Editor edit = sharedPreferences.edit();
edit.putString(str, str2);
edit.apply();
}
}
public void I(String str) {
H("key_user_info", str);
}
public void J(String str) {
H("key_user_token", str);
}
public void K(String str) {
try {
H("key_video_list", str);
} catch (Exception e2) {
e2.printStackTrace();
}
}
public void a(PostListBean postListBean) {
try {
if (postListBean.getId() == 0) {
return;
}
ArrayList arrayList = new ArrayList();
String m = m();
if (!TextUtils.isEmpty(m)) {
arrayList.addAll(JSON.parseArray(m, PostListBean.class));
}
if (l0.b(arrayList)) {
for (int size = arrayList.size() - 1; size >= 0; size--) {
if (((PostListBean) arrayList.get(size)).getId() == postListBean.getId()) {
arrayList.remove(size);
}
}
}
arrayList.add(0, postListBean);
if (arrayList.size() > 30) {
arrayList.remove(30);
}
H("key_post_history", JSON.toJSONString(arrayList));
} catch (Exception e2) {
e2.printStackTrace();
}
}
public void b() {
H("key_search_history", "");
}
public String c() {
return r("base_url", "");
}
public String d() {
return r("key_config", "");
}
public String e() {
return r("key_dating_city", "");
}
public String f() {
return r("key_dating_filter", "");
}
public String g() {
return r("key_dating_history", "");
}
public String h() {
return r("device_id", "");
}
public String j() {
return r("key_long_video_history", "");
}
public String k() {
return r("key_nude_chat_history", "");
}
public String l() {
return r("key_open_screen_ad", "");
}
public String m() {
return r("key_post_history", "");
}
public String n() {
return r("key_search_history", "");
}
public List<String> o() {
try {
String n = n();
if (TextUtils.isEmpty(n)) {
return null;
}
return Arrays.asList(n.split(","));
} catch (Exception e2) {
e2.printStackTrace();
return null;
}
}
public String p() {
return r("key_short_video_history", "");
}
public String q() {
return r("spare_url", "https://loyapi01.xingqu200.com/api.php,https://loyapi02.xingqu200.com/api.php,https://loyapi01.xingqu300.com/api.php,https://loyapi02.xingqu300.com/api.php");
}
public String r(String str, String str2) {
SharedPreferences sharedPreferences = this.f6380b;
return sharedPreferences != null ? sharedPreferences.getString(str, str2) : "";
}
public String s() {
return r("key_user_info", "");
}
public String t() {
return r("key_user_token", "");
}
public String u() {
return r("key_video_list", "");
}
public void v(String str) {
H("base_url", str);
}
public void w(String str) {
H("key_config", str);
}
public void x(String str) {
try {
H("key_dating_city", str);
} catch (Exception e2) {
e2.printStackTrace();
}
}
public void y(String str) {
try {
H("key_dating_filter", str);
} catch (Exception e2) {
e2.printStackTrace();
}
}
public void z(DatingGirlDetailBean datingGirlDetailBean) {
try {
ArrayList arrayList = new ArrayList();
String g2 = g();
if (!TextUtils.isEmpty(g2)) {
arrayList.addAll(JSON.parseArray(g2, DatingGirlDetailBean.class));
}
if (l0.b(arrayList)) {
for (int size = arrayList.size() - 1; size >= 0; size--) {
if (((DatingGirlDetailBean) arrayList.get(size)).getId() == datingGirlDetailBean.getId()) {
arrayList.remove(size);
}
}
}
arrayList.add(0, datingGirlDetailBean);
if (arrayList.size() > 30) {
arrayList.remove(30);
}
H("key_dating_history", JSON.toJSONString(arrayList));
} catch (Exception e2) {
e2.printStackTrace();
}
}
}