修改模拟器下载完成埋点

This commit is contained in:
张玉久
2020-10-27 11:09:35 +08:00
parent f9b689efdb
commit 74ebaa592b
3 changed files with 9 additions and 3 deletions

View File

@ -583,7 +583,7 @@ public class LogUtils {
}
public static void uploadSimulatorDownload(String event,String fileName, String simulatorId, String simulatorName, String gameId, String location, String downloadType) {
public static void uploadSimulatorDownload(String event, String fileName, String simulatorId, String simulatorName, String gameId, String location, String downloadType, String startTime) {
JSONObject object = new JSONObject();
JSONObject payload = new JSONObject();
try {
@ -597,6 +597,9 @@ public class LogUtils {
payload.put("location", location);//启动《具体的游戏名称》/模拟器游戏/模拟器游戏-模拟器管理
payload.put("game_id", gameId);//如果是 启动《游戏名称》 这种方式, 记录这个游戏具体的游戏ID
payload.put("download_type", downloadType);// update/download 下载类型(更新/下载)
if (!TextUtils.isEmpty(startTime) && event.equals("simulator_download_complete")) {
payload.put("simulator_download_timestamp", startTime);// 对应的下载开始时间
}
object.put("payload", payload);
} catch (JSONException e) {
e.printStackTrace();