同程有借 v1.0.0版本的 MD5 值为:e33397cdbab33543d0c134ec96d77fb8
以下内容为反编译后的 dd.java 源代码,内容仅作参考
package com.loc;
import android.util.Base64;
import anet.channel.util.HttpConstant;
import java.nio.charset.StandardCharsets;
public final class dd {
public static boolean a(byte[] bArr) {
String str;
if (bArr != null) {
byte[] bArr2 = null;
try {
ek ekVar = new ek();
ekVar.f9648b.put(HttpConstant.CONTENT_TYPE, "application/octet-stream");
ekVar.f9648b.put("aps_c_src", Base64.encodeToString(ek.a().getBytes(), 2));
ekVar.f9648b.put("aps_c_key", Base64.encodeToString(ek.b().getBytes(), 2));
ekVar.f9650d = bArr;
if (cu.f9459a) {
str = "http://cgicol.amap.com/collection/collectData?src=baseCol&ver=v74&";
} else {
str = (cu.f9460b ? "https://" : "http://") + "cgicol.amap.com/collection/collectData?src=baseCol&ver=v74&";
}
ekVar.f9647a = str;
el a9 = dy.b().a(ekVar);
if (a9 != null && a9.f9652a == 200) {
bArr2 = a9.f9654c;
}
if (bArr2 != null) {
return "true".equals(new String(bArr2, StandardCharsets.UTF_8));
}
return false;
} catch (Exception e9) {
ej.a(e9);
return false;
}
}
return false;
}
}