修复曝光下载完成事件里 payload 没有游戏 id 的问题

This commit is contained in:
chenjuntao
2019-01-23 14:50:53 +08:00
parent 29bfd5bb93
commit 9dae198af2
2 changed files with 6 additions and 1 deletions

View File

@ -429,7 +429,11 @@ public class MainActivity extends BaseActivity {
"网络状态", DeviceUtils.getNetwork(HaloApp.getInstance().getApplication()));
}
ExposureUtils.logADownloadCompleteExposureEvent(new GameEntity(downloadEntity.getGameId()), downloadEntity.getPlatform(), downloadEntity.getExposureTrace(), type);
ExposureUtils.logADownloadCompleteExposureEvent(
new GameEntity(downloadEntity.getGameId(), downloadEntity.getName()),
downloadEntity.getPlatform(),
downloadEntity.getExposureTrace(),
type);
DataCollectionUtils.uploadDownload(this, downloadEntity, "完成");
}

View File

@ -458,6 +458,7 @@ class GameUpdateFragmentAdapter extends BaseRecyclerAdapter<ViewHolder> {
DataUtils.onEvent(mContext, "游戏更新", updateEntity.getName(), kv);
DownloadEntity downloadEntity = new DownloadEntity();
downloadEntity.setGameId(updateEntity.getId());
downloadEntity.setUrl(updateEntity.getUrl());
downloadEntity.setName(updateEntity.getName());
downloadEntity.setPath(FileUtils.getDownloadPath(mContext,