Commit 7fd3baf108d1728615bd728c1395001de807c908

Authored by 张旭
1 parent e60231b3

修改有userID时新统计, 没userID时旧统计

CNLiveUserSystemDemo/CNLiveUserSystemSDK/CNLiveUserManager.m
@@ -103,21 +103,23 @@ @@ -103,21 +103,23 @@
103 103
104 - (void)applicationBecomeActive 104 - (void)applicationBecomeActive
105 { 105 {
106 - [self startUserStat];  
107 -  
108 if ([CNLiveUserManager manager].userId) 106 if ([CNLiveUserManager manager].userId)
109 { 107 {
110 [self wjjStartUserStat]; 108 [self wjjStartUserStat];
  109 + }else
  110 + {
  111 + [self startUserStat];
111 } 112 }
112 } 113 }
113 114
114 - (void)applicationEnterBackground 115 - (void)applicationEnterBackground
115 { 116 {
116 - [self endUserStat];  
117 -  
118 if ([CNLiveUserManager manager].userId) 117 if ([CNLiveUserManager manager].userId)
119 { 118 {
120 [self wjjEndUserStat]; 119 [self wjjEndUserStat];
  120 + }else
  121 + {
  122 + [self endUserStat];
121 } 123 }
122 } 124 }
123 @end 125 @end