Jelajahi Sumber

[edit][埋点bug]

zhangwei 3 tahun lalu
induk
melakukan
fe8746e9d3
1 mengubah file dengan 8 tambahan dan 2 penghapusan
  1. 8 2
      src/view/red-packet.vue

+ 8 - 2
src/view/red-packet.vue

@@ -650,6 +650,12 @@ function handleRedPacket() {
       handleErrorCode(res)
     }
   })
+  // 埋点
+  Report.reportLog({
+    pageSource: Report.pageSource.pending_page,
+    businessType: Report.businessType.buttonClick,
+    objectType: Report.objectType.open_button
+  });
 }
 
 chrome.storage.onChanged.addListener(changes => {
@@ -690,9 +696,9 @@ async function clickGetGiveaways() {
     handleFinishRedPacket()
     // 埋点
     Report.reportLog({
-      pageSource: Report.pageSource.pending_page,
+      pageSource: Report.pageSource.task_page,
       businessType: Report.businessType.buttonClick,
-      objectType: Report.objectType.open_button
+      objectType: Report.objectType.get_giveaway
     });
   }
 }