MyRecorder v1.01.90.0219版本的 MD5 值为:c361f51174a0bf833abfa72929caf8d3
以下内容为反编译后的 h.java 源代码,内容仅作参考
package com.bytedance.sdk.component.adexpress.dynamic.c;
import java.util.Iterator;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
public class h {
public static String a(String str) {
JSONObject optJSONObject;
JSONObject ai2 = com.bytedance.sdk.component.adexpress.b.ai(str);
if (ai2 == null || (optJSONObject = ai2.optJSONObject("values")) == null) {
return null;
}
return optJSONObject.optString("data");
}
public static String a(String str, String str2) {
JSONObject optJSONObject;
JSONObject ai2 = com.bytedance.sdk.component.adexpress.b.ai(str);
if (ai2 == null || (optJSONObject = ai2.optJSONObject("values")) == null) {
return null;
}
return optJSONObject.optString(str2);
}
public static JSONObject a(String str, JSONObject jSONObject, JSONObject jSONObject2) {
JSONObject ai2 = com.bytedance.sdk.component.adexpress.b.ai(str);
if (ai2 == null) {
return null;
}
if (jSONObject == null) {
jSONObject = new JSONObject();
}
return a(jSONObject2, ai2.optJSONObject("themeValues"), jSONObject);
}
public static JSONObject a(JSONArray jSONArray) {
JSONObject optJSONObject;
if (jSONArray == null || jSONArray.length() <= 0 || (optJSONObject = jSONArray.optJSONObject(0)) == null) {
return null;
}
return optJSONObject.optJSONObject("values");
}
public static JSONObject a(JSONObject... jSONObjectArr) {
JSONObject jSONObject = new JSONObject();
for (JSONObject jSONObject2 : jSONObjectArr) {
if (jSONObject2 != null) {
Iterator<String> keys = jSONObject2.keys();
while (keys.hasNext()) {
String next = keys.next();
try {
jSONObject.put(next, jSONObject2.opt(next));
} catch (JSONException e10) {
e10.printStackTrace();
}
}
}
}
return jSONObject;
}
public static void a(String str, JSONObject jSONObject) {
JSONObject ai2 = com.bytedance.sdk.component.adexpress.b.ai(str);
if (ai2 == null) {
return;
}
if (jSONObject == null) {
jSONObject = new JSONObject();
}
JSONObject optJSONObject = ai2.optJSONObject("values");
if (optJSONObject == null) {
return;
}
a(optJSONObject, jSONObject);
}
private static void a(JSONObject jSONObject, JSONObject jSONObject2) {
if (jSONObject2 == null) {
jSONObject2 = new JSONObject();
}
if (jSONObject == null) {
return;
}
Iterator<String> keys = jSONObject.keys();
while (keys.hasNext()) {
String next = keys.next();
if (!jSONObject2.has(next)) {
try {
jSONObject2.put(next, jSONObject.opt(next));
} catch (JSONException e10) {
e10.printStackTrace();
}
}
}
}
public static String b(String str) {
if (str.indexOf(46) < 0) {
str = str + ".png";
}
return "https://sf16-static.i18n-pglstatp.com/obj/ad-pattern-sg/static/images/" + str;
}
}