Commit 5d493aac5eecb32b4aa0cad5ec1319a067f64a15

Authored by iOS-Xiaowen
1 parent 9595e7c3

0.0.2

CNLiveBLoginModule/Classes/Controller/CNLiveCompleteInfoController.m
... ... @@ -54,7 +54,7 @@
54 54 #pragma mark - CNLiveCompleteInfoViewDelegate
55 55 - (void)loginSuccess:(CNLiveCompleteInfoView *)view result:(id _Nonnull)result{
56 56 // 进入tabbar
57   -
  57 + [self connectionIM];
58 58 }
59 59  
60 60 /*
... ... @@ -92,15 +92,7 @@
92 92 }
93 93  
94 94 #pragma mark - 连接IM
95   -- (void)connectionIM:(id)result{
96   - NSMutableDictionary *dic = [NSMutableDictionary dictionaryWithDictionary:result[@"data"]];
97   - NSString *faceUrl = [dic objectForKey:@"faceUrl"];
98   - if ([faceUrl containsString:@"/mobile/images/mobilehead/default/"]) {
99   - //网家家默认头像地址
100   - [dic setValue:CNLiveNetAddDefaultHead forKey:@"faceUrl"];
101   - }
102   - [CNUserInfoManager saveUserinfoDic:dic];
103   -
  95 +- (void)connectionIM{
104 96 // 连接IM
105 97 __weak typeof(self) weakSelf = self;
106 98 [[CNLiveLoginRequest manager] loginTIM:CNUserShareModel.uid success:^{
... ...
CNLiveBLoginModule/Classes/View/CNLiveLoginView.m
... ... @@ -327,6 +327,13 @@ static const NSInteger timeValue = 1.5;
327 327 __strong typeof(weakSelf) strongSelf = weakSelf;
328 328 if(!strongSelf) return;
329 329 [QMUITips hideAllToastInView:XWKeyWindow animated:YES];
  330 + NSMutableDictionary *dic = [NSMutableDictionary dictionaryWithDictionary:result[@"data"]];
  331 + NSString *faceUrl = [dic objectForKey:@"faceUrl"];
  332 + if ([faceUrl containsString:@"/mobile/images/mobilehead/default/"]) {
  333 + //网家家默认头像地址
  334 + [dic setValue:CNLiveNetAddDefaultHead forKey:@"faceUrl"];
  335 + }
  336 + [CNUserInfoManager saveUserinfoDic:dic];
330 337 // 连接IM
331 338 [strongSelf callback:result];
332 339  
... ...