数据收集createdOn时间获取修改、添加game_id字段(在有game字段的地方)

This commit is contained in:
huangzhuanghua
2016-09-14 11:43:39 +08:00
parent 405056cbd3
commit 1acf79baae
35 changed files with 228 additions and 246 deletions

View File

@ -119,8 +119,7 @@ public class ConcernActivity extends BaseActivity implements OnClickListener {
public void onResponse(JSONArray response) {
processingData(response);
}
},
new Response.ErrorListener() {
}, new Response.ErrorListener() {
@Override
public void onErrorResponse(VolleyError error) {
@ -173,8 +172,7 @@ public class ConcernActivity extends BaseActivity implements OnClickListener {
processingConcernGame(result);
}
}
},
new Response.ErrorListener() {
}, new Response.ErrorListener() {
@Override
public void onErrorResponse(VolleyError error) {
addConcernCount();
@ -238,8 +236,8 @@ public class ConcernActivity extends BaseActivity implements OnClickListener {
Map<String, Object> map = new HashMap<>();
map.put("game", concernInfo.getGameName());
map.put("game_id", concernInfo.getId());
map.put("type", "取消关注");
map.put("createdOn", System.currentTimeMillis() / 1000);
DataCollectionManager.onEvent(ConcernActivity.this, "concern", map);
manager.deleteConcern(concernInfo.getId());
@ -265,8 +263,8 @@ public class ConcernActivity extends BaseActivity implements OnClickListener {
Map<String, Object> map = new HashMap<>();
map.put("location", "关注列表");
map.put("createOn", System.currentTimeMillis() / 1000);
map.put("game", gameEntity.getName());
map.put("game_id", gameEntity.getId());
map.put("page", "我的关注");
DataCollectionManager.onEvent(ConcernActivity.this, "click-item", map);
@ -342,8 +340,8 @@ public class ConcernActivity extends BaseActivity implements OnClickListener {
Map<String, Object> map = new HashMap<>();
map.put("game", gameEntity.getName());
map.put("game_id", gameEntity.getId());
map.put("type", "关注");
map.put("createdOn", System.currentTimeMillis() / 1000);
DataCollectionManager.onEvent(ConcernActivity.this, "concern", map);
manager.addByEntity(gameEntity);
@ -379,8 +377,8 @@ public class ConcernActivity extends BaseActivity implements OnClickListener {
Map<String, Object> map = new HashMap<>();
map.put("location", "热门游戏推荐");
map.put("createOn", System.currentTimeMillis() / 1000);
map.put("game", gameEntity.getName());
map.put("game_id", gameEntity.getId());
map.put("page", "我的关注");
DataCollectionManager.onEvent(ConcernActivity.this, "click-item", map);