红果免费短剧 v6.2.3.32版本的 MD5 值为:a6b05492607eab2c8a25f26d2f238ae0
以下内容为反编译后的 e.java 源代码,内容仅作参考
package com.bytedance.lynx.webview.cloudservice;
import android.webkit.ValueCallback;
import com.bytedance.lynx.webview.internal.EventType;
import com.bytedance.lynx.webview.internal.TTWebContext;
import com.bytedance.lynx.webview.util.b.e;
import com.bytedance.lynx.webview.util.i;
import java.util.HashMap;
import org.json.JSONException;
import org.json.JSONObject;
public final class e {
private e() {
}
private static String b() {
if (TTWebContext.o() != null) {
return TTWebContext.o().b().getDeviceId();
}
return null;
}
private static int a() {
String appId;
if (TTWebContext.o() == null || (appId = TTWebContext.o().b().getAppId()) == null) {
return -1;
}
int parseInt = Integer.parseInt(appId);
if (parseInt == 13) {
return 58;
}
if (parseInt == 35) {
return 59;
}
return parseInt;
}
public static void a(String str, final ValueCallback<String> valueCallback) {
try {
final long currentTimeMillis = System.currentTimeMillis();
com.bytedance.lynx.webview.util.b.d dVar = new com.bytedance.lynx.webview.util.b.d("https://scc.bytedance.com/scc_sdk/adblock_rules/get");
dVar.f22124c = "POST";
dVar.f22122a = new HashMap();
dVar.f22122a.put("Content-Type", "application/json");
dVar.e = 5000;
JSONObject jSONObject = new JSONObject();
jSONObject.put("domain", str);
jSONObject.put("aid", a());
jSONObject.put("did", b());
jSONObject.put("device_platform", "android");
dVar.d = jSONObject.toString();
com.bytedance.lynx.webview.util.b.b bVar = new com.bytedance.lynx.webview.util.b.b();
bVar.f22120a = new e.a() {
@Override
public void b(com.bytedance.lynx.webview.util.b.e eVar) {
valueCallback.onReceiveValue("request_fail");
long currentTimeMillis2 = System.currentTimeMillis();
g.a(EventType.SCC_CLOUD_SERVICE_ADBLOCK, eVar, currentTimeMillis2 - currentTimeMillis, currentTimeMillis2 - TTWebContext.a().g);
}
@Override
public void a(com.bytedance.lynx.webview.util.b.e eVar) {
valueCallback.onReceiveValue(new String(eVar.f22127c));
long currentTimeMillis2 = System.currentTimeMillis();
g.a(EventType.SCC_CLOUD_SERVICE_ADBLOCK, eVar, currentTimeMillis2 - currentTimeMillis, currentTimeMillis2 - TTWebContext.a().g);
}
};
i.a().a(dVar, bVar);
} catch (JSONException e) {
e.printStackTrace();
}
}
}