|
@@ -481,6 +481,10 @@ async function clickLikeBtn() {
|
|
|
objectType: Report.objectType.like,
|
|
|
pageSource: Report.pageSource.task_page,
|
|
|
businessType: Report.businessType.buttonClick
|
|
|
+ }, {
|
|
|
+ postId: state.postId,
|
|
|
+ srcContentId: state.tweetId,
|
|
|
+ senderId: state.userId,
|
|
|
});
|
|
|
}
|
|
|
function clickDone() {
|
|
@@ -490,6 +494,10 @@ function clickDone() {
|
|
|
objectType: Report.objectType.wallet_button,
|
|
|
pageSource: Report.pageSource.received_success_page,
|
|
|
businessType: Report.businessType.buttonClick
|
|
|
+ }, {
|
|
|
+ postId: state.postId,
|
|
|
+ srcContentId: state.tweetId,
|
|
|
+ senderId: state.userId,
|
|
|
});
|
|
|
}
|
|
|
function handleScroll(e) {
|
|
@@ -587,6 +595,10 @@ async function clickRetweetBtn() {
|
|
|
objectType: Report.objectType.retweet,
|
|
|
pageSource: Report.pageSource.task_page,
|
|
|
businessType: Report.businessType.buttonClick
|
|
|
+ }, {
|
|
|
+ postId: state.postId,
|
|
|
+ srcContentId: state.tweetId,
|
|
|
+ senderId: state.userId,
|
|
|
});
|
|
|
}
|
|
|
|
|
@@ -818,7 +830,11 @@ async function clickFollowAll(item, is_all) {
|
|
|
if (is_all) {
|
|
|
_log_obj.objectType = Report.objectType.follow_button
|
|
|
}
|
|
|
- Report.reportLog(_log_obj);
|
|
|
+ Report.reportLog(_log_obj, {
|
|
|
+ postId: state.postId,
|
|
|
+ srcContentId: state.tweetId,
|
|
|
+ senderId: state.userId,
|
|
|
+ });
|
|
|
}
|
|
|
|
|
|
|
|
@@ -854,6 +870,10 @@ const showCloseEndTimePageReport = () => {
|
|
|
Report.reportLog({
|
|
|
pageSource: Report.pageSource.expired_page,
|
|
|
businessType: Report.businessType.pageView,
|
|
|
+ }, {
|
|
|
+ postId: state.postId,
|
|
|
+ srcContentId: state.tweetId,
|
|
|
+ senderId: state.userId,
|
|
|
});
|
|
|
}
|
|
|
|
|
@@ -863,6 +883,10 @@ const showSuccessPage = () => {
|
|
|
Report.reportLog({
|
|
|
pageSource: Report.pageSource.received_success_page,
|
|
|
businessType: Report.businessType.pageView,
|
|
|
+ }, {
|
|
|
+ postId: state.postId,
|
|
|
+ srcContentId: state.tweetId,
|
|
|
+ senderId: state.userId,
|
|
|
});
|
|
|
}
|
|
|
const showNotOpenPage = () => {
|
|
@@ -886,6 +910,10 @@ const showOpenedPageReport = () => {
|
|
|
Report.reportLog({
|
|
|
pageSource: Report.pageSource.task_page,
|
|
|
businessType: Report.businessType.pageView,
|
|
|
+ }, {
|
|
|
+ postId: state.postId,
|
|
|
+ srcContentId: state.tweetId,
|
|
|
+ senderId: state.userId,
|
|
|
});
|
|
|
}
|
|
|
|
|
@@ -899,6 +927,10 @@ const showRabbitPageReport = () => {
|
|
|
Report.reportLog({
|
|
|
pageSource: Report.pageSource.received_empty_rewards_page,
|
|
|
businessType: Report.businessType.pageView,
|
|
|
+ }, {
|
|
|
+ postId: state.postId,
|
|
|
+ srcContentId: state.tweetId,
|
|
|
+ senderId: state.userId,
|
|
|
});
|
|
|
}
|
|
|
|
|
@@ -1307,7 +1339,10 @@ function handleFinishRedPacket() {
|
|
|
businessType: Report.businessType.buttonClick,
|
|
|
objectType: Report.objectType.get_giveaway
|
|
|
}, {
|
|
|
- get_giveaway_result: Report.extParams.success
|
|
|
+ get_giveaway_result: Report.extParams.success,
|
|
|
+ postId: state.postId,
|
|
|
+ srcContentId: state.tweetId,
|
|
|
+ senderId: state.userId,
|
|
|
});
|
|
|
} else {
|
|
|
let _data = res.data.conditionResult
|
|
@@ -1383,7 +1418,10 @@ function handleFinishRedPacket() {
|
|
|
businessType: Report.businessType.buttonClick,
|
|
|
objectType: Report.objectType.get_giveaway
|
|
|
}, {
|
|
|
- get_giveaway_result: Report.extParams.failure
|
|
|
+ get_giveaway_result: Report.extParams.failure,
|
|
|
+ postId: state.postId,
|
|
|
+ srcContentId: state.tweetId,
|
|
|
+ senderId: state.userId,
|
|
|
});
|
|
|
if (discordAuthorizeRequired) {
|
|
|
discordAuth('reAuth');
|
|
@@ -1396,7 +1434,10 @@ function handleFinishRedPacket() {
|
|
|
businessType: Report.businessType.buttonClick,
|
|
|
objectType: Report.objectType.get_giveaway
|
|
|
}, {
|
|
|
- get_giveaway_result: Report.extParams.failure
|
|
|
+ get_giveaway_result: Report.extParams.failure,
|
|
|
+ postId: state.postId,
|
|
|
+ srcContentId: state.tweetId,
|
|
|
+ senderId: state.userId,
|
|
|
});
|
|
|
handleErrorCode(res)
|
|
|
}
|
|
@@ -1475,6 +1516,10 @@ function handleErrorCode(res) {
|
|
|
Report.reportLog({
|
|
|
pageSource: Report.pageSource.robot_detection_failed_page,
|
|
|
businessType: Report.businessType.pageView,
|
|
|
+ }, {
|
|
|
+ postId: state.postId,
|
|
|
+ srcContentId: state.tweetId,
|
|
|
+ senderId: state.userId,
|
|
|
});
|
|
|
break
|
|
|
// 无法校验用户Twitter信息
|