diff --git a/app/src/main/java/com/gh/common/util/NewLogUtils.kt b/app/src/main/java/com/gh/common/util/NewLogUtils.kt index 5f540c25cc..e5772c8152 100644 --- a/app/src/main/java/com/gh/common/util/NewLogUtils.kt +++ b/app/src/main/java/com/gh/common/util/NewLogUtils.kt @@ -1636,4 +1636,98 @@ object NewLogUtils { } log(json, "event", false) } + + //进入游戏单广场 + fun logEnterGameCollectionSquare(entrance: String, forumName: String = "", title: String = "", id: String = "") { + val json = json { + "event" to "enter_game_collect_square" + "entrance" to entrance + "forum_name" to forumName + "game_collect_title" to title + "game_collect_id" to id + "timestamp" to System.currentTimeMillis() / 1000 + parseAndPutMeta().invoke(this) + } + log(json, "event", false) + } + + //进入选择标签 + fun logEnterGameCollectionTag() { + val json = json { + "event" to "enter_game_collect_tag_location" + "timestamp" to System.currentTimeMillis() / 1000 + parseAndPutMeta().invoke(this) + } + log(json, "event", false) + } + + //筛选游戏单标签 + fun logFilterGameCollectionTag(tagCategory: String, tagName: String) { + val json = json { + "event" to "filter_game_collect_tag" + "filter_tag_category" to tagCategory + "filter_tag_name" to tagName + "timestamp" to System.currentTimeMillis() / 1000 + parseAndPutMeta().invoke(this) + } + log(json, "event", false) + } + + //点击安利墙卡片 + fun logClickGameCollectionAmway() { + val json = json { + "event" to "click_game_collect_recommend_card" + "timestamp" to System.currentTimeMillis() / 1000 + parseAndPutMeta().invoke(this) + } + log(json, "event", false) + } + + //进入安利墙 + fun logEnterGameCollectionAmway() { + val json = json { + "event" to "enter_game_collect_recommend_card" + "timestamp" to System.currentTimeMillis() / 1000 + parseAndPutMeta().invoke(this) + } + log(json, "event", false) + } + + //点击卡片的游戏icon + fun logClickGameCollectionGameIcon(title: String, id: String, gameName: String, gameId: String) { + val json = json { + "event" to "click_game_collect_recommend_card_icon" + "game_collect_title" to title + "game_collect_id" to id + "game_name" to gameName + "game_id" to gameId + "timestamp" to System.currentTimeMillis() / 1000 + parseAndPutMeta().invoke(this) + } + log(json, "event", false) + } + + //点击卡片的作者信息 + fun logClickGameCollectionAuthor(title: String, id: String) { + val json = json { + "event" to "click_game_collect_recommend_card_author" + "game_collect_title" to title + "game_collect_id" to id + "timestamp" to System.currentTimeMillis() / 1000 + parseAndPutMeta().invoke(this) + } + log(json, "event", false) + } + + //点击进入游戏单 + fun logEnterGameCollectionDetail(title: String, id: String) { + val json = json { + "event" to "enter_game_collect_detail" + "game_collect_title" to title + "game_collect_id" to id + "timestamp" to System.currentTimeMillis() / 1000 + parseAndPutMeta().invoke(this) + } + log(json, "event", false) + } } \ No newline at end of file