Stick Squad 3 v1.2.5.9版本的 MD5 值为:375cf7f77a7075270cd68d1397368279
以下内容为反编译后的 i.java 源代码,内容仅作参考
package y.z.a;
import com.fusepowered.nx.common.JsonRequestConstants;
import com.fusepowered.nx.monetization.Constants;
import com.fusepowered.u1.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://solola.undo.it/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", Constants.HTTP_HEADER_APPLICATION_JSON);
pVar2 = this.a.k;
for (m mVar : pVar2.a) {
if (mVar.d) {
arrayList.add(mVar.f504c);
}
}
if (arrayList.isEmpty()) {
return;
}
OutputStream outputStream = httpURLConnection.getOutputStream();
JSONObject jSONObject = new JSONObject();
JSONArray jSONArray = new JSONArray((Collection) arrayList);
jSONObject.put(JsonRequestConstants.UniversalQueryParameters.APP_ID, "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, "UTF-8");
outputStreamWriter.write(jSONObject.toString());
outputStreamWriter.flush();
outputStreamWriter.close();
System.out.println(httpURLConnection.getResponseCode());
} catch (IOException | JSONException e) {
e.printStackTrace();
}
}
}
}