Money Lover v8.14.0.6版本的 MD5 值为:48b9d922212c7ccfd438cdcc183ff396
以下内容为反编译后的 b.java 源代码,内容仅作参考
package w5;
import com.facebook.internal.ServerProtocol;
import com.google.common.net.HttpHeaders;
import com.google.gson.GsonBuilder;
import fr.b0;
import fr.d0;
import fr.u;
import fr.w;
import fr.z;
import java.io.IOException;
import java.text.SimpleDateFormat;
import java.util.HashMap;
import java.util.List;
import sr.a;
import ut.t;
import y5.f;
public class b {
private static y5.a f37189a;
private static SimpleDateFormat f37190b;
class a extends f {
a(y5.b bVar) {
super(bVar);
}
@Override
public boolean d(HashMap<String, String> hashMap) {
return ServerProtocol.DIALOG_RETURN_SCOPES_TRUE.equals(hashMap.get("refreshed"));
}
}
public static void b(int i10, String str, String str2, y5.b<x5.b> bVar) {
HashMap hashMap = new HashMap();
hashMap.put("service_id", i10 + "");
hashMap.put("callback_url", str);
hashMap.put("customer_id", str2);
f37189a.a(hashMap).w(bVar);
}
private static z c(Boolean bool) {
z.a aVar = new z.a();
aVar.a(d(bool));
sr.a aVar2 = new sr.a();
aVar2.d(a.EnumC0592a.BODY);
aVar.a(aVar2);
return aVar.b();
}
private static w d(final Boolean bool) {
return new w() {
@Override
public final d0 a(w.a aVar) {
d0 f10;
f10 = b.f(bool, aVar);
return f10;
}
};
}
public static void e(boolean z10) {
String str;
f37190b = new SimpleDateFormat("yyyy-MM-dd");
t.b a10 = new t.b().f(c(Boolean.valueOf(z10))).a(vt.a.g(new GsonBuilder().setDateFormat("yyyy-MM-dd").create()));
if (z10) {
str = "https://link-services.moneylover.com/api/";
} else {
str = "https://api.finsify.com/v2/";
}
f37189a = (y5.a) a10.c(str).d().b(y5.a.class);
}
public static d0 f(Boolean bool, w.a aVar) throws IOException {
String str;
b0 request = aVar.getRequest();
u.a a10 = request.getHeaders().c().a(HttpHeaders.ACCEPT, "application/json").a("Content-type", "application/json");
if (bool.booleanValue()) {
str = "sE5dve74KVpx6k";
} else {
str = "Tu5dvG07KVpx6b";
}
return aVar.c(request.h().g(a10.a("Client-id", str).a("App-secret", "abcb1387-4d9a-4c79-aa1f-571802e8c59a").f()).b());
}
public static void g(String str, y5.b<List<x5.a>> bVar) {
f37189a.d(str).w(bVar);
}
public static void h(String str, String str2, y5.b<x5.b> bVar) {
HashMap hashMap = new HashMap();
hashMap.put("callback_url", str2);
f37189a.b(str, hashMap).w(bVar);
}
public static void i(String str, y5.b<Boolean> bVar) {
f37189a.c(str, new HashMap()).w(new a(bVar));
}
}