Booty Calls v1.2.156版本的 MD5 值为:919c7e4dc831ea1adbaf506a3cc1a198
以下内容为反编译后的 DmmGamesPageView.java 源代码,内容仅作参考
package com.dmm.games.report;
import com.dmm.games.http.DmmGamesHttp;
import com.dmm.games.http.Method;
import com.dmm.games.log.Log;
import java.util.Map;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.Future;
import okhttp3.ResponseBody;
public class DmmGamesPageView {
private static final String PV_SEND_URL_FORMAT = "https://log-netgame.dmm.com/freegame_app_access.php?user_id=%s&app_id=%s&device=android_app";
public static class Response extends DmmGamesHttp.Response {
@Override
protected void parse(ResponseBody responseBody) throws Throwable {
}
}
public static class Request extends DmmGamesHttp.Request<Response> {
private final String appId;
private final String dmmGamesId;
@Override
protected byte[] getBody() {
return null;
}
@Override
protected Map<String, String> getRequestHeaders() {
return null;
}
protected Request(String str, String str2) {
super(Response.class);
this.dmmGamesId = str;
this.appId = str2;
}
@Override
public Method getHttpMethod() {
return Method.GET;
}
@Override
protected String getUrl() {
return String.format(DmmGamesPageView.PV_SEND_URL_FORMAT, this.dmmGamesId, this.appId);
}
}
public static void sendPv(String str, String str2) {
final ExecutorService newSingleThreadExecutor = Executors.newSingleThreadExecutor();
final Future<Response> execute = new Request(str2, str).execute(newSingleThreadExecutor);
Log.debug().println("Page View Sending : User ID : " + str2 + ", App ID : " + str);
newSingleThreadExecutor.submit(new Runnable() {
@Override
public void run() {
try {
Response response = (Response) execute.get();
Log.debug().println("Page View HttpStatus : " + response.getHttpStatus());
newSingleThreadExecutor.shutdown();
} catch (Throwable th) {
th.printStackTrace();
}
}
});
}
}