添加埋点
This commit is contained in:
@@ -130,6 +130,18 @@ typedef NS_ENUM(NSInteger, KBSkinDetailSection) {
|
||||
if (nextThemeId.length == 0) { return; }
|
||||
if ([nextThemeId isEqualToString:self.themeId ?: @""]) { return; }
|
||||
|
||||
NSMutableDictionary *extra = [NSMutableDictionary dictionary];
|
||||
if ([self.themeId isKindOfClass:NSString.class] && self.themeId.length > 0) {
|
||||
extra[@"from_theme_id"] = self.themeId;
|
||||
}
|
||||
extra[@"to_theme_id"] = nextThemeId;
|
||||
extra[@"index"] = @(indexPath.item);
|
||||
[[KBMaiPointReporter sharedReporter] reportClickWithEventName:@"click_skin_recommend_card"
|
||||
pageId:@"skin_detail"
|
||||
elementId:@"recommend_card"
|
||||
extra:extra.copy
|
||||
completion:nil];
|
||||
|
||||
// 不跳转新页面:直接切换 themeId,重新请求详情并刷新当前页面
|
||||
self.themeId = nextThemeId;
|
||||
self.detailModel = nil;
|
||||
@@ -242,6 +254,16 @@ typedef NS_ENUM(NSInteger, KBSkinDetailSection) {
|
||||
[KBHUD showInfo:KBLocalized(@"正在加载主题详情")];
|
||||
return;
|
||||
}
|
||||
|
||||
NSMutableDictionary *extra = [NSMutableDictionary dictionary];
|
||||
extra[@"theme_id"] = self.themeId ?: @"";
|
||||
extra[@"purchased"] = @(self.detailModel.isPurchased);
|
||||
[[KBMaiPointReporter sharedReporter] reportClickWithEventName:@"click_skin_download_btn"
|
||||
pageId:@"skin_detail"
|
||||
elementId:@"download_btn"
|
||||
extra:extra.copy
|
||||
completion:nil];
|
||||
|
||||
NSLog(@"🧩[SkinDetail] action themeId=%@ purchased=%d", self.themeId, self.detailModel.isPurchased);
|
||||
if (self.detailModel.isPurchased) {
|
||||
[self requestDownload];
|
||||
|
||||
Reference in New Issue
Block a user