吉他调音器专业版 v2.30701.8版本的 MD5 值为:9d8c85f04999890638bf11bd08e611f4
以下内容为反编译后的 b.java 源代码,内容仅作参考
package i.b.a.b.r0;
import android.app.Activity;
import android.os.Build;
import android.provider.Settings;
import android.telephony.TelephonyManager;
import android.text.TextUtils;
import androidx.core.app.ComponentActivity;
import androidx.exifinterface.media.ExifInterface;
import com.meizu.cloud.pushsdk.constants.PushConstants;
import j.a.s;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Map;
import java.util.Objects;
import org.litepal.crud.LitePalSupport;
public class b {
public static class a implements s<HashMap<String, String>> {
public final f a;
public a(f fVar) {
this.a = fVar;
}
@Override
public void onNext(HashMap<String, String> hashMap) {
this.a.a(hashMap.get("data"));
}
@Override
public void onComplete() {
}
@Override
public void onError(Throwable th) {
this.a.onError(th);
}
@Override
public void onSubscribe(j.a.x.b bVar) {
}
}
public static class C0158b implements s<HashMap<String, Object>> {
public final i.b.a.b.r0.c a;
public C0158b(i.b.a.b.r0.c cVar) {
this.a = cVar;
}
@Override
public void onNext(HashMap<String, Object> hashMap) {
i.b.a.b.r0.c cVar = this.a;
if (cVar != null) {
cVar.onResult(hashMap.get("msg").equals("payed"));
}
}
@Override
public void onComplete() {
}
@Override
public void onError(Throwable th) {
i.b.a.b.r0.c cVar = this.a;
if (cVar != null) {
cVar.onError(th);
}
}
@Override
public void onSubscribe(j.a.x.b bVar) {
}
}
public static class c implements s<HashMap<String, Object>> {
public final ComponentActivity a;
public final i.b.a.b.r0.d b;
public final i.b.a.b.s0.a f6693c;
public class a implements Runnable {
public final HashMap a;
public a(HashMap hashMap) {
this.a = hashMap;
}
@Override
public void run() {
c cVar = c.this;
cVar.b.a(cVar.f6693c, Objects.requireNonNull(this.a.get("data")).toString());
}
}
public c(ComponentActivity componentActivity, i.b.a.b.r0.d dVar, i.b.a.b.s0.a aVar) {
this.a = componentActivity;
this.b = dVar;
this.f6693c = aVar;
}
@Override
public void onNext(HashMap<String, Object> hashMap) {
this.a.runOnUiThread(new a(hashMap));
}
@Override
public void onComplete() {
}
@Override
public void onError(Throwable th) {
this.b.a(this.f6693c, th);
}
@Override
public void onSubscribe(j.a.x.b bVar) {
}
}
public static class d implements s<HashMap<String, Object>> {
public final ComponentActivity a;
public final e b;
public class a implements Runnable {
public a() {
}
@Override
public void run() {
d.this.b.onSuccess();
}
}
public d(ComponentActivity componentActivity, e eVar) {
this.a = componentActivity;
this.b = eVar;
}
@Override
public void onNext(HashMap<String, Object> hashMap) {
this.a.runOnUiThread(new a());
}
@Override
public void onComplete() {
}
@Override
public void onError(Throwable th) {
this.b.onError(th);
}
@Override
public void onSubscribe(j.a.x.b bVar) {
}
}
public static void a(f fVar) {
((i.b.a.b.r0.a) i.b.a.b.r0.g.e.a(i.b.a.b.r0.a.class)).getTimeStampApi().subscribeOn(j.a.e0.a.b()).subscribe(new a(fVar));
}
public static void a(Activity activity, String str, String str2, String str3, String str4, String str5, i.b.a.b.r0.c cVar) {
String str6;
if (Build.VERSION.SDK_INT > 28) {
str6 = Settings.System.getString(activity.getContentResolver(), "android_id");
} else {
TelephonyManager telephonyManager = (TelephonyManager) activity.getSystemService("phone");
if (Build.VERSION.SDK_INT < 23) {
str6 = "";
} else if (activity.checkSelfPermission("android.permission.READ_PHONE_STATE") != 0) {
str6 = Settings.System.getString(activity.getContentResolver(), "android_id");
} else {
str6 = telephonyManager.getDeviceId();
}
}
HashMap hashMap = new HashMap();
hashMap.put("appId", str);
hashMap.put(com.heytap.mcssdk.a.a.f2772m, str2);
hashMap.put("timeStamp", str3);
hashMap.put("deviceId", str4);
hashMap.put("goodsCode", str5);
hashMap.put("IMEI", str6);
String a2 = a((HashMap<String, Object>) hashMap);
HashMap hashMap2 = new HashMap();
hashMap2.put("sign", a2);
hashMap2.put("appId", str);
hashMap2.put("timeStamp", str3);
hashMap2.put("deviceId", str4);
hashMap2.put("IMEI", str6);
hashMap2.put("goodsCode", str5);
((i.b.a.b.r0.a) i.b.a.b.r0.g.e.a(i.b.a.b.r0.a.class)).c(hashMap2).subscribeOn(j.a.e0.a.b()).subscribe(new C0158b(cVar));
}
public static void a(i.b.a.b.s0.a aVar, ComponentActivity componentActivity, String str, String str2, String str3, String str4, String str5, String str6, String str7, boolean z, i.b.a.b.r0.d dVar) {
HashMap hashMap = new HashMap();
hashMap.put("appId", str);
hashMap.put(com.heytap.mcssdk.a.a.f2772m, str2);
hashMap.put("timeStamp", str3);
hashMap.put("deviceId", str4);
hashMap.put("goodsName", str5);
hashMap.put("goodsCode", str6);
hashMap.put("amount", str7);
hashMap.put("production", Boolean.valueOf(z));
String a2 = a((HashMap<String, Object>) hashMap);
if (aVar == i.b.a.b.s0.a.PayForWechat) {
HashMap hashMap2 = new HashMap();
hashMap2.put("sign", a2);
hashMap2.put("appId", str);
hashMap2.put("timeStamp", str3);
hashMap2.put("deviceId", str4);
hashMap2.put("goodsName", str5);
hashMap2.put("goodsCode", str6);
hashMap2.put("amount", str7);
hashMap2.put("production", z + "");
((i.b.a.b.r0.a) i.b.a.b.r0.g.e.a(i.b.a.b.r0.a.class)).a(hashMap2).subscribeOn(j.a.e0.a.b()).subscribe(new c(componentActivity, dVar, aVar));
return;
}
if (aVar == i.b.a.b.s0.a.PayForAlipay) {
dVar.a(aVar, ((((((("https://api.8fenyi.cn/rest/pay/v1/alipay?sign=" + a2) + "&appId=" + str) + "&timeStamp=" + str3) + "&deviceId=" + str4) + "&goodsName=" + str5) + "&goodsCode=" + str6) + "&amount=" + str7) + "&production=" + z);
}
}
public static void a(ComponentActivity componentActivity, String str, String str2, String str3, String str4, String str5, String str6, String str7, e eVar) {
HashMap hashMap = new HashMap();
hashMap.put("appId", str2);
hashMap.put(com.heytap.mcssdk.a.a.f2772m, str3);
hashMap.put("timeStamp", str4);
hashMap.put("level", str);
hashMap.put("type", "5");
hashMap.put("model", i.d.a.a.f.a());
hashMap.put("sysVersion", i.d.a.a.f.b());
hashMap.put("desc", str5);
hashMap.put("detail", str6);
hashMap.put("deviceId", str7);
hashMap.put("appVersion", i.d.a.a.d.d());
String a2 = a((HashMap<String, Object>) hashMap);
HashMap hashMap2 = new HashMap();
hashMap2.put("appId", str2);
hashMap2.put("sign", a2);
hashMap2.put("timeStamp", str4);
hashMap2.put("level", str);
hashMap2.put("type", "5");
hashMap2.put("model", i.d.a.a.f.a());
hashMap2.put("sysVersion", i.d.a.a.f.b());
hashMap2.put("desc", str5);
hashMap2.put("detail", str6);
hashMap2.put("deviceId", str7);
hashMap2.put("appVersion", i.d.a.a.d.d());
((i.b.a.b.r0.a) i.b.a.b.r0.g.e.a(i.b.a.b.r0.a.class)).b(hashMap2).subscribeOn(j.a.e0.a.b()).subscribe(new d(componentActivity, eVar));
}
public static String a(HashMap<String, Object> hashMap) {
ArrayList arrayList = new ArrayList();
Iterator<Map.Entry<String, Object>> it = hashMap.entrySet().iterator();
while (it.hasNext()) {
arrayList.add(it.next().getKey().toLowerCase());
}
Collections.sort(arrayList);
Iterator it2 = arrayList.iterator();
String str = "";
while (it2.hasNext()) {
String str2 = (String) it2.next();
for (Map.Entry<String, Object> entry : hashMap.entrySet()) {
if (str2.equals(entry.getKey().toLowerCase()) && !str.contains(str2)) {
str = str + entry.getKey() + "=" + entry.getValue() + "&";
}
}
}
return a(str.substring(0, str.length() - 1));
}
public static String a(String str) {
if (TextUtils.isEmpty(str)) {
return "";
}
try {
String str2 = "";
for (byte b : MessageDigest.getInstance(LitePalSupport.MD5).digest(str.getBytes())) {
String hexString = Integer.toHexString(b & ExifInterface.MARKER);
if (hexString.length() == 1) {
hexString = PushConstants.PUSH_TYPE_NOTIFY + hexString;
}
str2 = str2 + hexString;
}
return str2;
} catch (NoSuchAlgorithmException e2) {
e2.printStackTrace();
return "";
}
}
}