光环助手V4.7.0-新分类精选页功能优化 二、前端功能-第3点 pm/halo-app-issues#1123 (漏传部分)

This commit is contained in:
lyr
2021-01-20 15:51:47 +08:00
parent 4906ecc06b
commit 03092a0ec1

View File

@ -667,6 +667,25 @@ public class LogUtils {
logCatalogEvent("click_content_list", entrance, key, seq1, -1, seqContent, seqContentList);
}
public static void logSpecialCatalogBannerClickEvent(String key, int seq) {
JSONObject object = new JSONObject();
try {
object.put("event", "category_lunbo_click");
object.put("meta", getMetaObject());
object.put("timestamp", System.currentTimeMillis() / 1000);
object.put("key", key);
object.put("sequence", seq);
} catch (JSONException e) {
e.printStackTrace();
}
if (BuildConfig.DEBUG) {
Utils.log("LogUtils->" + object.toString());
}
LoghubUtils.log(object, "event", false);
}
private static void logCatalogEvent(String event, String entrance, String key, int seq1, int seq2, int seqContent, int seqContentList) {
JSONObject object = new JSONObject();
JSONObject payload = new JSONObject();