Mad Aces v1.2.2.3版本的 MD5 值为:f29ebd7c5808053d9f3f3722a5db1688
以下内容为反编译后的 i.java 源代码,内容仅作参考
package y.z.a;
import com.heyzap.http.AsyncHttpResponseHandler;
import com.unity3d.ads.android.properties.UnityAdsConstants;
import java.io.IOException;
import java.io.OutputStream;
import java.io.OutputStreamWriter;
import java.net.HttpURLConnection;
import java.net.URL;
import java.util.ArrayList;
import java.util.Collection;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
class i implements Runnable {
final G a;
public i(G g) {
this.a = g;
}
@Override
public void run() {
p pVar;
p pVar2;
String str;
String str2;
pVar = this.a.k;
if (pVar != null) {
try {
HttpURLConnection httpURLConnection = (HttpURLConnection) new URL("http://contax.stan.cn/impression").openConnection();
httpURLConnection.setDoInput(true);
httpURLConnection.setRequestMethod(UnityAdsConstants.UNITY_ADS_REQUEST_METHOD_POST);
ArrayList arrayList = new ArrayList();
httpURLConnection.setRequestProperty("Accept", "application/v2+json");
httpURLConnection.setRequestProperty("Content-Type", "application/json");
pVar2 = this.a.k;
for (m mVar : pVar2.a) {
if (mVar.d) {
arrayList.add(mVar.c);
}
}
if (arrayList.isEmpty()) {
return;
}
OutputStream outputStream = httpURLConnection.getOutputStream();
JSONObject jSONObject = new JSONObject();
JSONArray jSONArray = new JSONArray((Collection) arrayList);
jSONObject.put("appId", "monstertruck");
jSONObject.put("placementId", "App Wall");
str = G.h;
jSONObject.put("androidId", str);
str2 = G.g;
jSONObject.put("advId", str2);
jSONObject.put("impressions", jSONArray);
OutputStreamWriter outputStreamWriter = new OutputStreamWriter(outputStream, AsyncHttpResponseHandler.DEFAULT_CHARSET);
outputStreamWriter.write(jSONObject.toString());
outputStreamWriter.flush();
outputStreamWriter.close();
System.out.println(httpURLConnection.getResponseCode());
} catch (IOException | JSONException e) {
e.printStackTrace();
}
}
}
}