Commit 96992613c568b6c5cf585eff3cb767dda9f96455

Authored by yanglingyu
1 parent c2ef3713

云测bug修复

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