Commit 96c61387fe3e4baab040826515ddcd0b0a831ff6

Authored by 张旭
1 parent 005aefec

no message

LiveVideoCloud/Classes/Sections/UGCSections/Controller/LVCUGCLivePlayerController.m
... ... @@ -62,14 +62,6 @@
62 62  
63 63 [super viewWillDisappear:animated];
64 64 self.navigationController.navigationBar.hidden = NO;
65   - //UGC直播时长统计结束
66   - if ([_model.activityStatus isEqualToString:@"1"]) {
67   - [CNLiveStat endEvent:@"UGCLive"];
68   - }
69   - //UGC回放时长统计结束
70   - if ([_model.activityStatus isEqualToString:@"4"]) {
71   - [CNLiveStat endEvent:@"UGCPlayback"];
72   - }
73 65 }
74 66  
75 67 - (void)viewDidLoad {
... ... @@ -130,7 +122,11 @@
130 122  
131 123 if ((btn.tag == 1002) || (btn.tag == 1003)) {
132 124 [self.navigationController popViewControllerAnimated:YES];
  125 + //UGC回放时长统计结束
  126 + [CNLiveStat endEvent:@"UGCPlayback"];
133 127 } else if (btn.tag == 1001) {
  128 + //UGC直播时长统计结束
  129 + [CNLiveStat endEvent:@"UGCLive"];
134 130  
135 131 [[CNLiveChatManager sharedCNLiveChatManager] quitChatRoom:_liveBaseView.roomId success:^(NSString *targetId) {
136 132 NSLog(@"quit Success");
... ...