Commit 96992613c568b6c5cf585eff3cb767dda9f96455

Authored by yanglingyu
1 parent c2ef3713

云测bug修复

CNLiveCMineModule/Classes/CNCMine/Present/CNMinePresent.m
... ... @@ -374,10 +374,6 @@
374 374 }
375 375 + (void)requestMineDataSourceWithBlock:(void (^)( CNScoreModel *))completerBlock
376 376 {
377   - if (![CNLiveNetworking isNetworking]) {
378   - [QMUITips showWithText:@"无法连接网络" inView:AppKeyWindow hideAfterDelay:1.5];
379   - return;
380   - }
381 377 NSDictionary *params = @{@"uid":[CNUserInfoManager manager].userInfoModel.uid?[CNUserInfoManager manager].userInfoModel.uid:@""};
382 378 [CNLiveNetworking setAllowRequestDefaultArgument:YES];
383 379 [CNLiveNetworking setupDSRequest:YES];
... ...
CNLiveCMineModule/Classes/CNCMine/ViewController/CNLiveMineVC.m
... ... @@ -43,7 +43,10 @@ static NSString *const CNSobotNotification_NewMessage = @"CNSobotNotification_Ne
43 43  
44 44 @implementation CNLiveMineVC
45 45 - (void)loadData{
46   -
  46 + if (![CNLiveNetworking isNetworking]) {
  47 + [QMUITips showWithText:@"无法连接网络" inView:AppKeyWindow hideAfterDelay:1.5];
  48 + return;
  49 + }
47 50 weakself
48 51 [CNMinePresent requestMineDataSourceWithBlock:^(CNScoreModel * _Nonnull model) {
49 52 [weakSelf.bgScrollView.mj_header endRefreshing];
... ...
CNLiveCMineModule/Classes/CNCSubMine/ViewController/CNMinePersonIconController.m
... ... @@ -107,11 +107,11 @@
107 107 image = [image fixOrientation];//这个方法是UIImage+Extras.h中方法
108 108  
109 109 //修改头像 上传到服务器
110   - [QMUITips showLoading:@"修改中" inView:self.view];
  110 + [QMUITips showLoading:@"修改中" inView:AppKeyWindow];
111 111  
112 112 [CNLiveUserSystemCenter uploadIconWithUid:CNUserShareModel.uid icon:image compressionQuality:0.99 success:^(id result) {
113 113 NSLog(@"result:%@",result);
114   - [QMUITips hideAllToastInView:self.view animated:YES];
  114 + [QMUITips hideAllToastInView:AppKeyWindow animated:YES];
115 115 CNUserShareModel.faceUrl = result[@"data"][@"faceUrl"];
116 116 CNUserShareModel.bigFaceUrl = result[@"data"][@"bigFaceUrl"];
117 117 [self.iconView sd_setImageWithURL:[NSURL URLWithString:CNUserShareModel.bigFaceUrl] placeholderImage:self.iconView.image completed:^(UIImage *image, NSError *error, SDImageCacheType cacheType, NSURL *imageURL) {
... ...
CNLiveCMineModule/Classes/CNCSubMine/ViewController/CNMinePersonNicknameController.m
... ... @@ -366,7 +366,7 @@ static NSString *sexCellId = @"sexCellId";
366 366 signatureStr = [self.textView.text qmui_trim];
367 367 }
368 368  
369   - NSDictionary *dic = [NSDictionary dictionaryWithObjectsAndKeys:[[CNLiveCMineService shareMineProtocol] base64StringDecrypt:signatureStr encryptKey:AppDESKey],@"locationDesc", nil];
  369 + NSDictionary *dic = [NSDictionary dictionaryWithObjectsAndKeys:[[CNLiveCMineService shareMineProtocol] base64StringDecrypt:signatureStr encryptKey:AppEncryKey],@"locationDesc", nil];
370 370 NSString *updateSign = CNLiveNSDictionaryDicToJson(dic);
371 371  
372 372 [QMUITips showLoading:@"修改中" inView:self.view];
... ...