This commit is contained in:
juntao
2021-04-21 17:53:24 +08:00
parent feb2f68778
commit b5ef73517f
11 changed files with 167 additions and 36 deletions

View File

@ -1064,6 +1064,24 @@ public class LogUtils {
LoghubUtils.log(object, "event", false);
}
public static void logGameDetailFixedTopArticleClick(String gameId, String gameName, String url) {
JSONObject object = new JSONObject();
try {
object.put("event", "game_detail_click_top_strategy");
object.put("game_id", gameId);
object.put("game_name", gameName);
object.put("top_strategy_url", url);
object.put("meta", getMetaObject());
object.put("timestamp", System.currentTimeMillis() / 1000);
} catch (JSONException e) {
e.printStackTrace();
}
if (BuildConfig.DEBUG) {
Utils.log("LogUtils->" + object.toString());
}
LoghubUtils.log(object, "event", false);
}
public static void logHomeTopTabClick(String tabName, String linkType, String linkTitle, int sequence) {
JSONObject object = new JSONObject();
try {