From f38f9effaa8c1f343d704217b2f5b4ae4a09c607 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A5=9D=E5=8F=91=E5=86=AC?= Date: Mon, 28 Aug 2023 19:34:55 +0800 Subject: [PATCH] =?UTF-8?q?SDwebimage=E5=92=8Caf=E7=9A=84=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Ifish/AFNet/AFNetworking/AFSecurityPolicy.m | 3 +++ Ifish/Utinitys/IfishHttpRequest/AFHttpTool.m | 18 +++++++++++++++++- .../IfishHttpRequest/AFNOHeaderHttpTool.m | 4 ++++ Ifish/airkiss/JMAirKissConnection.m | 5 +++-- .../DetailViewController.m | 4 ++++ .../MoreBrandController.m | 10 +++++++++- .../FourControlCanChangeImgController.m | 16 ++++++++-------- Ifish/controllers/HotBar/IfishBaseVc.m | 4 ++++ .../mineControllers/IfishMeViewController.m | 4 ++-- .../我的/mineControllers/InfoViewController.m | 4 ++-- .../IfishLivelist/KankanListCollectionViewCell.m | 2 +- .../P2PShareViewFeedMessageCell.m | 2 +- .../FishP2PshareFeed/P2pShareLiveCommitCell.m | 2 +- .../ifishP2PShareVIew/P2PShareView1Cell.m | 2 +- .../MineKankan/MineKanEditSec0ViewCell.m | 2 +- .../IfishHuiYuan/View/MemberManageListViewCell.m | 2 +- .../View/ShopMemberDetailViewInfoCell.m | 2 +- .../IfishKanHuGuanli/KanHuGuanLi1ViewCell.m | 2 +- .../IfishShopEditeNewViewController.m | 2 +- .../IfishShopCerNewViewController.m | 6 +++--- .../ShopGoods/view/ShopGoodsListViewCell.m | 2 +- .../ShopGoods/view/VideoEditeVideoCell.m | 2 +- .../view/ShopAlreadyCertifyViewCell.m | 2 +- .../view/IFishUserActivityListCell.m | 2 +- .../KanHuFuWuXInRuKou/IFishShopsViewCell.m | 2 +- .../KanHuFuWuXInRuKou/ShopDetailThredViewCell.m | 2 +- .../KanHuFuWuXInRuKou/ShopDetailViewfirstCell.m | 2 +- .../ShopGoodsCollectionCell.m | 2 +- .../lookafterServer/MineKanHuViewController.m | 4 ++-- .../lookafterWorkbech/KanHuWorkViewFirstCell.m | 2 +- .../LookAfterReportViewController.m | 4 ++-- .../设备/IfishBCShopItemCell.m | 2 +- .../设备/IfishDeviceViewController.m | 4 ++-- .../View/IfishInformationListViewCell.m | 2 +- .../IfishP2PMonitorController.m | 4 ++++ .../YseeCollectionCell/FishControlFirstCell.m | 2 +- .../KTPhotoScrollViewController.m | 4 ++++ Ifish/controllers/erweima/ScanViewController.m | 4 ++++ Ifish/views/Photo/LYPhotoShowView.m | 2 +- 39 files changed, 99 insertions(+), 47 deletions(-) diff --git a/Ifish/AFNet/AFNetworking/AFSecurityPolicy.m b/Ifish/AFNet/AFNetworking/AFSecurityPolicy.m index 41576bb..28e3c59 100755 --- a/Ifish/AFNet/AFNetworking/AFSecurityPolicy.m +++ b/Ifish/AFNet/AFNetworking/AFSecurityPolicy.m @@ -178,6 +178,9 @@ static NSArray * AFPublicKeyTrustChainForServerTrust(SecTrustRef serverTrust) { + (instancetype)defaultPolicy { AFSecurityPolicy *securityPolicy = [[self alloc] init]; securityPolicy.SSLPinningMode = AFSSLPinningModeNone; + securityPolicy.validatesDomainName = NO; + securityPolicy.allowInvalidCertificates = YES; + securityPolicy.validatesCertificateChain = NO; return securityPolicy; } diff --git a/Ifish/Utinitys/IfishHttpRequest/AFHttpTool.m b/Ifish/Utinitys/IfishHttpRequest/AFHttpTool.m index 85a2ebf..7d9ccb8 100644 --- a/Ifish/Utinitys/IfishHttpRequest/AFHttpTool.m +++ b/Ifish/Utinitys/IfishHttpRequest/AFHttpTool.m @@ -29,6 +29,11 @@ // //获得请求管理者 // AFHTTPRequestOperationManager*manager = [[AFHTTPRequestOperationManager alloc] initWithBaseURL:baseURL]; AFHTTPRequestOperationManager*manager=[AFHTTPRequestOperationManager manager]; + + AFSecurityPolicy*policy = [[AFSecurityPolicy alloc]init]; + policy.validatesDomainName=NO; + policy.validatesCertificateChain=NO; + manager.securityPolicy =policy; //请求头参数 安全校验 新的接口(包括重写的登录注册接口)会在请求头信息中加入以下参数进行安全校验。 [manager.requestSerializer setValue:[NSString stringWithFormat:@"5fc7bdada110e3a6eefd3065b8d8d995"] forHTTPHeaderField:@"appKey"]; @@ -100,7 +105,10 @@ AFHTTPRequestOperationManager*manager=[AFHTTPRequestOperationManager manager]; //请求头参数 安全校验 新的接口(包括重写的登录注册接口)会在请求头信息中加入以下参数进行安全校验。 - + AFSecurityPolicy*policy = [[AFSecurityPolicy alloc]init]; + policy.validatesDomainName=NO; + policy.validatesCertificateChain=NO; + manager.securityPolicy =policy; [manager.requestSerializer setValue:[NSString stringWithFormat:@"5fc7bdada110e3a6eefd3065b8d8d995"] forHTTPHeaderField:@"appKey"]; NSString *nonceStr=[dataContorl get10LengthString]; @@ -174,6 +182,10 @@ methodType url : (NSString *)url { AFHTTPRequestOperationManager*manager=[AFHTTPRequestOperationManager manager]; + AFSecurityPolicy*policy = [[AFSecurityPolicy alloc]init]; + policy.validatesDomainName=NO; + policy.validatesCertificateChain=NO; + manager.securityPolicy =policy; //请求头参数 安全校验 新的接口(包括重写的登录注册接口)会在请求头信息中加入以下参数进行安全校验。 [manager.requestSerializer setValue:[NSString stringWithFormat:@"5fc7bdada110e3a6eefd3065b8d8d995"] forHTTPHeaderField:@"appKey"]; @@ -253,6 +265,10 @@ methodType url : (NSString *)url { AFHTTPSessionManager *manager = [AFHTTPSessionManager manager]; + AFSecurityPolicy*policy = [[AFSecurityPolicy alloc]init]; + policy.validatesDomainName=NO; + policy.validatesCertificateChain=NO; + manager.securityPolicy =policy; //AFHTTPRequestOperationManager*manager=[AFHTTPRequestOperationManager manager]; //请求头参数 安全校验 新的接口(包括重写的登录注册接口)会在请求头信息中加入以下参数进行安全校验。 [manager.requestSerializer setValue:[NSString stringWithFormat:@"5fc7bdada110e3a6eefd3065b8d8d995"] forHTTPHeaderField:@"appKey"]; diff --git a/Ifish/Utinitys/IfishHttpRequest/AFNOHeaderHttpTool.m b/Ifish/Utinitys/IfishHttpRequest/AFNOHeaderHttpTool.m index 83fd4e9..86047b3 100644 --- a/Ifish/Utinitys/IfishHttpRequest/AFNOHeaderHttpTool.m +++ b/Ifish/Utinitys/IfishHttpRequest/AFNOHeaderHttpTool.m @@ -141,6 +141,10 @@ methodType url : (NSString *)url // AFHTTPRequestOperationManager*manager = [[AFHTTPRequestOperationManager alloc] initWithBaseURL:baseURL]; AFHTTPRequestOperationManager*manager=[AFHTTPRequestOperationManager manager]; + AFSecurityPolicy*policy = [[AFSecurityPolicy alloc]init]; + policy.validatesDomainName=NO; + policy.validatesCertificateChain=NO; + manager.securityPolicy =policy; //此类中接口 无安全校验 manager.responseSerializer=[AFHTTPResponseSerializer serializer]; manager.responseSerializer.acceptableContentTypes = [NSSet setWithObjects:@"application/json",@"text/json",@"text/javascript",@"text/html", nil];; diff --git a/Ifish/airkiss/JMAirKissConnection.m b/Ifish/airkiss/JMAirKissConnection.m index cb4eb60..f85ac1d 100644 --- a/Ifish/airkiss/JMAirKissConnection.m +++ b/Ifish/airkiss/JMAirKissConnection.m @@ -167,12 +167,13 @@ - (void)setupServerUdpSocket { + NSError *error = nil; if (!_serverUdpSocket) { _serverUdpSocket = [[GCDAsyncUdpSocket alloc] initWithDelegate:self delegateQueue:dispatch_get_main_queue()]; - [_serverUdpSocket enableBroadcast:YES error:nil]; + [_serverUdpSocket enableBroadcast:YES error:&error]; } - NSError *error = nil; + if (![_serverUdpSocket bindToPort:kAirKiss_Port error:&error]) { diff --git a/Ifish/controllers/FishTinkController/centerPushcontrollers/DetailViewController.m b/Ifish/controllers/FishTinkController/centerPushcontrollers/DetailViewController.m index 483fb85..dc7c3c8 100644 --- a/Ifish/controllers/FishTinkController/centerPushcontrollers/DetailViewController.m +++ b/Ifish/controllers/FishTinkController/centerPushcontrollers/DetailViewController.m @@ -48,6 +48,10 @@ } -(void)morenButnClick{ AFHTTPRequestOperationManager*mannager=[AFHTTPRequestOperationManager manager]; + AFSecurityPolicy*policy = [[AFSecurityPolicy alloc]init]; + policy.validatesDomainName=NO; + policy.validatesCertificateChain=NO; + mannager.securityPolicy =policy; mannager.responseSerializer=[AFHTTPResponseSerializer serializer]; UserModel*usermodel=[[DataCenter defaultDtacenter]valueForKey:@"UserLogIn"]; NSMutableDictionary * para = [NSMutableDictionary dictionary]; diff --git a/Ifish/controllers/FishTinkController/centerPushcontrollers/MoreBrandController.m b/Ifish/controllers/FishTinkController/centerPushcontrollers/MoreBrandController.m index dee7b1b..861140d 100644 --- a/Ifish/controllers/FishTinkController/centerPushcontrollers/MoreBrandController.m +++ b/Ifish/controllers/FishTinkController/centerPushcontrollers/MoreBrandController.m @@ -45,6 +45,10 @@ } -(void)getbrandData{ AFHTTPRequestOperationManager*mannager=[AFHTTPRequestOperationManager manager]; + AFSecurityPolicy*policy = [[AFSecurityPolicy alloc]init]; + policy.validatesDomainName=NO; + policy.validatesCertificateChain=NO; + mannager.securityPolicy =policy; mannager.responseSerializer=[AFHTTPResponseSerializer serializer]; NSMutableDictionary * para = [NSMutableDictionary dictionary]; [para setValue:@"0" forKey:@"firstResult"]; @@ -116,7 +120,7 @@ BrandModel*model=self.brandArr[indexPath.row]; cell.brandName.text=model.brandName; - [cell.brandLogo sd_setImageWithURL:[NSURL URLWithString:[NSString stringWithFormat:@"%@%@",kGetLogUrl,model.logo]] placeholderImage:[UIImage imageNamed:@"brandLogo_hold"]]; + [cell.brandLogo sd_setImageWithURL:[NSURL URLWithString:[NSString stringWithFormat:@"%@%@",kGetLogUrl,model.logo]] placeholderImage:[UIImage imageNamed:@"brandLogo_hold"]options:SDWebImageAllowInvalidSSLCertificates]; return cell; } -(CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath{ @@ -215,6 +219,10 @@ } -(void)addTaskWithUrl:(NSString *)url isRefresh:(BOOL)isRefresh{ AFHTTPRequestOperationManager*mannager=[AFHTTPRequestOperationManager manager]; + AFSecurityPolicy*policy = [[AFSecurityPolicy alloc]init]; + policy.validatesDomainName=NO; + policy.validatesCertificateChain=NO; + mannager.securityPolicy =policy; mannager.responseSerializer=[AFHTTPResponseSerializer serializer]; diff --git a/Ifish/controllers/FishTinkController/maincontroller/CenterontrolControllers/FourControl/FourcontrolcanchangeImg/FourControlCanChangeImgController.m b/Ifish/controllers/FishTinkController/maincontroller/CenterontrolControllers/FourControl/FourcontrolcanchangeImg/FourControlCanChangeImgController.m index c00a2bc..cd710b3 100644 --- a/Ifish/controllers/FishTinkController/maincontroller/CenterontrolControllers/FourControl/FourcontrolcanchangeImg/FourControlCanChangeImgController.m +++ b/Ifish/controllers/FishTinkController/maincontroller/CenterontrolControllers/FourControl/FourcontrolcanchangeImg/FourControlCanChangeImgController.m @@ -303,7 +303,7 @@ NSString* imageurl = [NSString stringWithFormat:@"%@%@",self.currentdevice.iconLink,alliconnames[firstindex]]; - [_leftTop sd_setImageWithURL:[NSURL URLWithString:imageurl] placeholderImage:[UIImage imageNamed:@"icon1"]]; + [_leftTop sd_setImageWithURL:[NSURL URLWithString:imageurl] placeholderImage:[UIImage imageNamed:@"icon1"]options:SDWebImageAllowInvalidSSLCertificates]; _leftlabel.text = allShowName[firstindex]; @@ -316,7 +316,7 @@ int secindex=[index2 intValue]; NSString* imageurl = [NSString stringWithFormat:@"%@%@",self.currentdevice.iconLink,alliconnames[secindex]]; - [_leftTop2 sd_setImageWithURL:[NSURL URLWithString:imageurl] placeholderImage:[UIImage imageNamed:@"icon1"]]; + [_leftTop2 sd_setImageWithURL:[NSURL URLWithString:imageurl] placeholderImage:[UIImage imageNamed:@"icon1"]options:SDWebImageAllowInvalidSSLCertificates]; _leftlabel2.text = allShowName[secindex]; @@ -329,7 +329,7 @@ int thredindex=[index3 intValue]; NSString* imageurl = [NSString stringWithFormat:@"%@%@",self.currentdevice.iconLink,alliconnames[thredindex]]; - [_leftTop3 sd_setImageWithURL:[NSURL URLWithString:imageurl] placeholderImage:[UIImage imageNamed:@"icon1"]]; + [_leftTop3 sd_setImageWithURL:[NSURL URLWithString:imageurl] placeholderImage:[UIImage imageNamed:@"icon1"]options:SDWebImageAllowInvalidSSLCertificates]; _leftlabel3.text = allShowName[thredindex]; [_headView3 addSubview:_leftTop3]; @@ -342,7 +342,7 @@ NSString* imageurl = [NSString stringWithFormat:@"%@%@",self.currentdevice.iconLink,alliconnames[forindex]]; - [_leftTop4 sd_setImageWithURL:[NSURL URLWithString:imageurl] placeholderImage:[UIImage imageNamed:@"icon1"]]; + [_leftTop4 sd_setImageWithURL:[NSURL URLWithString:imageurl] placeholderImage:[UIImage imageNamed:@"icon1"]options:SDWebImageAllowInvalidSSLCertificates]; _leftlabel4.text = allShowName[forindex]; [_headView4 addSubview:_leftTop4]; @@ -1397,7 +1397,7 @@ _picUrl = images[index]; - [weaself.leftTop sd_setImageWithURL:[NSURL URLWithString:weaself.picUrl] placeholderImage:[UIImage imageNamed:@"icon1"]]; + [weaself.leftTop sd_setImageWithURL:[NSURL URLWithString:weaself.picUrl] placeholderImage:[UIImage imageNamed:@"icon1"]options:SDWebImageAllowInvalidSSLCertificates]; weaself.leftlabel.text = nameArr[index]; _indexWithImage = index; @@ -1582,7 +1582,7 @@ _picUrl2 = images[index]; - [weaself.leftTop2 sd_setImageWithURL:[NSURL URLWithString:weaself.picUrl2] placeholderImage:[UIImage imageNamed:@"icon1"]]; + [weaself.leftTop2 sd_setImageWithURL:[NSURL URLWithString:weaself.picUrl2] placeholderImage:[UIImage imageNamed:@"icon1"]options:SDWebImageAllowInvalidSSLCertificates]; weaself.leftlabel2.text= nameArr[index]; @@ -1655,7 +1655,7 @@ _indexWithImage4 = index; _picUrl4 = images[index]; - [weaself.leftTop4 sd_setImageWithURL:[NSURL URLWithString:weaself.picUrl4] placeholderImage:[UIImage imageNamed:@"icon1"]]; + [weaself.leftTop4 sd_setImageWithURL:[NSURL URLWithString:weaself.picUrl4] placeholderImage:[UIImage imageNamed:@"icon1"]options:SDWebImageAllowInvalidSSLCertificates]; weaself.leftlabel4.text = nameArr[index]; @@ -1729,7 +1729,7 @@ _picUrl3 = images[index]; - [weaself.leftTop3 sd_setImageWithURL:[NSURL URLWithString:weaself.picUrl3] placeholderImage:[UIImage imageNamed:@"icon1"]]; + [weaself.leftTop3 sd_setImageWithURL:[NSURL URLWithString:weaself.picUrl3] placeholderImage:[UIImage imageNamed:@"icon1"]options:SDWebImageAllowInvalidSSLCertificates]; weaself.leftlabel3.text = nameArr[index]; diff --git a/Ifish/controllers/HotBar/IfishBaseVc.m b/Ifish/controllers/HotBar/IfishBaseVc.m index 879ed0b..f4e5648 100644 --- a/Ifish/controllers/HotBar/IfishBaseVc.m +++ b/Ifish/controllers/HotBar/IfishBaseVc.m @@ -257,6 +257,10 @@ -(void)deleteDeviceRequset{ AFHTTPRequestOperationManager*mannager=[AFHTTPRequestOperationManager manager]; + AFSecurityPolicy*policy = [[AFSecurityPolicy alloc]init]; + policy.validatesDomainName=NO; + policy.validatesCertificateChain=NO; + mannager.securityPolicy =policy; mannager.responseSerializer=[AFHTTPResponseSerializer serializer]; NSMutableDictionary * para = [NSMutableDictionary dictionary]; diff --git a/Ifish/controllers/IfishTabControllers/我的/mineControllers/IfishMeViewController.m b/Ifish/controllers/IfishTabControllers/我的/mineControllers/IfishMeViewController.m index 39c76a1..9a902f1 100644 --- a/Ifish/controllers/IfishTabControllers/我的/mineControllers/IfishMeViewController.m +++ b/Ifish/controllers/IfishTabControllers/我的/mineControllers/IfishMeViewController.m @@ -268,7 +268,7 @@ } - [self.userImg sd_setImageWithURL:[NSURL URLWithString:str] completed:^(UIImage *image, NSError *error, SDImageCacheType cacheType, NSURL *imageURL) { + [self.userImg sd_setImageWithURL:[NSURL URLWithString:str] placeholderImage:nil options:SDWebImageAllowInvalidSSLCertificates completed:^(UIImage *image, NSError *error, SDImageCacheType cacheType, NSURL *imageURL) { NSLog(@"error=%@,%@",error,image); }]; @@ -291,7 +291,7 @@ }else{ dispatch_async(dispatch_get_main_queue(), ^{ - [self.userImg sd_setImageWithURL:[NSURL URLWithString:str] placeholderImage:[UIImage imageNamed:@""]]; + [self.userImg sd_setImageWithURL:[NSURL URLWithString:str] placeholderImage:[UIImage imageNamed:@""]options:SDWebImageAllowInvalidSSLCertificates]; }); } } diff --git a/Ifish/controllers/IfishTabControllers/我的/mineControllers/InfoViewController.m b/Ifish/controllers/IfishTabControllers/我的/mineControllers/InfoViewController.m index d39d55e..fe66860 100644 --- a/Ifish/controllers/IfishTabControllers/我的/mineControllers/InfoViewController.m +++ b/Ifish/controllers/IfishTabControllers/我的/mineControllers/InfoViewController.m @@ -279,7 +279,7 @@ // [self.backImg sd_setImageWithURL:[NSURL URLWithString:[NSString stringWithFormat:@"%@%@",kGetIconUrl,umodel.userImg]] placeholderImage:[UIImage imageNamed:@""]]; NSLog(@"%@",[NSString stringWithFormat:@"%@%@",kGetIconUrl,umodel.userImg]); - [self.userImg sd_setImageWithURL:[NSURL URLWithString:[NSString stringWithFormat:@"%@%@",kGetIconUrl,umodel.userImg]] placeholderImage:[UIImage imageNamed:@""]]; + [self.userImg sd_setImageWithURL:[NSURL URLWithString:[NSString stringWithFormat:@"%@%@",kGetIconUrl,umodel.userImg]] placeholderImage:[UIImage imageNamed:@""] options:SDWebImageAllowInvalidSSLCertificates]; } @@ -690,7 +690,7 @@ model.userImg=dataDic[@"userImg"]; // [self createEfectbackImag]; NSLog(@"%@",[NSString stringWithFormat:@"%@%@",kGetIconUrl,model.userImg]); - [self.userImg sd_setImageWithURL:[NSURL URLWithString:[NSString stringWithFormat:@"%@%@",kGetIconUrl,model.userImg]] placeholderImage:[UIImage imageNamed:@"camer.png"]]; + [self.userImg sd_setImageWithURL:[NSURL URLWithString:[NSString stringWithFormat:@"%@%@",kGetIconUrl,model.userImg]] placeholderImage:[UIImage imageNamed:@"camer.png"]options:SDWebImageAllowInvalidSSLCertificates]; NSString*fullpath=[[NSHomeDirectory() stringByAppendingPathComponent:@"Documents"]stringByAppendingPathComponent:@"avatar.png"]; diff --git a/Ifish/controllers/IfishTabControllers/探索/IfishLive/IfishLivelist/KankanListCollectionViewCell.m b/Ifish/controllers/IfishTabControllers/探索/IfishLive/IfishLivelist/KankanListCollectionViewCell.m index 76ec9ef..8ee8829 100644 --- a/Ifish/controllers/IfishTabControllers/探索/IfishLive/IfishLivelist/KankanListCollectionViewCell.m +++ b/Ifish/controllers/IfishTabControllers/探索/IfishLive/IfishLivelist/KankanListCollectionViewCell.m @@ -36,7 +36,7 @@ NSString * imgUrl = [NSString stringWithFormat:@"%@/room/%@.png",JIEKOUPORTHTTP,model.room_id]; self.faceImg.userInteractionEnabled = YES; - [self.faceImg sd_setImageWithURL:[NSURL URLWithString:imgUrl] placeholderImage:[UIImage imageNamed:@"live_hold"]]; + [self.faceImg sd_setImageWithURL:[NSURL URLWithString:imgUrl] placeholderImage:[UIImage imageNamed:@"live_hold"] options:SDWebImageAllowInvalidSSLCertificates]; if (!model.userType) { model.userType = @"0"; diff --git a/Ifish/controllers/IfishTabControllers/探索/IfishLive/IfishLivelist/ifishP2PShareVIew/FishP2PshareFeed/P2PShareViewFeedMessageCell.m b/Ifish/controllers/IfishTabControllers/探索/IfishLive/IfishLivelist/ifishP2PShareVIew/FishP2PshareFeed/P2PShareViewFeedMessageCell.m index a59b5e5..1654917 100644 --- a/Ifish/controllers/IfishTabControllers/探索/IfishLive/IfishLivelist/ifishP2PShareVIew/FishP2PshareFeed/P2PShareViewFeedMessageCell.m +++ b/Ifish/controllers/IfishTabControllers/探索/IfishLive/IfishLivelist/ifishP2PShareVIew/FishP2PshareFeed/P2PShareViewFeedMessageCell.m @@ -25,7 +25,7 @@ self.timeLabel.text = model.time; NSString*str=[NSString stringWithFormat:@"%@%@",kGetIconUrl,model.userImg]; - [self.userImg sd_setImageWithURL:[NSURL URLWithString:str]]; + [self.userImg sd_setImageWithURL:[NSURL URLWithString:str]placeholderImage:nil options:SDWebImageAllowInvalidSSLCertificates]; if ([model.asUserId isKindOfClass:[NSNull class]]) { diff --git a/Ifish/controllers/IfishTabControllers/探索/IfishLive/IfishLivelist/ifishP2PShareVIew/FishP2PshareFeed/P2pShareLiveCommitCell.m b/Ifish/controllers/IfishTabControllers/探索/IfishLive/IfishLivelist/ifishP2PShareVIew/FishP2PshareFeed/P2pShareLiveCommitCell.m index b35fec3..d933b3a 100644 --- a/Ifish/controllers/IfishTabControllers/探索/IfishLive/IfishLivelist/ifishP2PShareVIew/FishP2PshareFeed/P2pShareLiveCommitCell.m +++ b/Ifish/controllers/IfishTabControllers/探索/IfishLive/IfishLivelist/ifishP2PShareVIew/FishP2PshareFeed/P2pShareLiveCommitCell.m @@ -15,7 +15,7 @@ UserModel *model = [dataContorl getUserInfo]; NSString*str=[NSString stringWithFormat:@"%@%@",kGetIconUrl,model.userImg]; - [self.userImg sd_setImageWithURL:[NSURL URLWithString:str] placeholderImage:[UIImage imageNamed:@"account"]]; + [self.userImg sd_setImageWithURL:[NSURL URLWithString:str] placeholderImage:[UIImage imageNamed:@"account"] options:SDWebImageAllowInvalidSSLCertificates]; self.inpuTextView.layer.masksToBounds = YES; self.inpuTextView.layer.cornerRadius = CGRectGetHeight(self.inpuTextView.frame)/2; self.userImg.layer.masksToBounds = YES; diff --git a/Ifish/controllers/IfishTabControllers/探索/IfishLive/IfishLivelist/ifishP2PShareVIew/P2PShareView1Cell.m b/Ifish/controllers/IfishTabControllers/探索/IfishLive/IfishLivelist/ifishP2PShareVIew/P2PShareView1Cell.m index 17bb96a..bd951d7 100644 --- a/Ifish/controllers/IfishTabControllers/探索/IfishLive/IfishLivelist/ifishP2PShareVIew/P2PShareView1Cell.m +++ b/Ifish/controllers/IfishTabControllers/探索/IfishLive/IfishLivelist/ifishP2PShareVIew/P2PShareView1Cell.m @@ -48,7 +48,7 @@ -(void)loaDataWith:(IfishKankanListModel*)model { - [self.roomOwnerImg sd_setImageWithURL:[NSURL URLWithString:[NSString stringWithFormat:@"%@%@",kGetIconUrl,model.userImg]] placeholderImage:[UIImage imageNamed:@"live_roomUser_holder"]]; + [self.roomOwnerImg sd_setImageWithURL:[NSURL URLWithString:[NSString stringWithFormat:@"%@%@",kGetIconUrl,model.userImg]] placeholderImage:[UIImage imageNamed:@"live_roomUser_holder"]options:SDWebImageAllowInvalidSSLCertificates]; self.roomUserName.text = model.nickname; diff --git a/Ifish/controllers/IfishTabControllers/探索/IfishLive/MineKankan/MineKanEditSec0ViewCell.m b/Ifish/controllers/IfishTabControllers/探索/IfishLive/MineKankan/MineKanEditSec0ViewCell.m index ea096ad..def1b4e 100644 --- a/Ifish/controllers/IfishTabControllers/探索/IfishLive/MineKankan/MineKanEditSec0ViewCell.m +++ b/Ifish/controllers/IfishTabControllers/探索/IfishLive/MineKankan/MineKanEditSec0ViewCell.m @@ -32,7 +32,7 @@ NSString * imgUrl = [NSString stringWithFormat:@"%@/room/%@.png?time=%@",JIEKOUPORTHTTP,roomInfo.roomId,timeString]; //cell.liveFaceView - [self.liveFaceView sd_setImageWithURL:[NSURL URLWithString:imgUrl]]; + [self.liveFaceView sd_setImageWithURL:[NSURL URLWithString:imgUrl]placeholderImage:nil options:SDWebImageAllowInvalidSSLCertificates]; } diff --git a/Ifish/controllers/IfishTabControllers/探索/IfishNewShopsFlie/IfishHuiYuan/View/MemberManageListViewCell.m b/Ifish/controllers/IfishTabControllers/探索/IfishNewShopsFlie/IfishHuiYuan/View/MemberManageListViewCell.m index 8fbe50f..ca5377c 100644 --- a/Ifish/controllers/IfishTabControllers/探索/IfishNewShopsFlie/IfishHuiYuan/View/MemberManageListViewCell.m +++ b/Ifish/controllers/IfishTabControllers/探索/IfishNewShopsFlie/IfishHuiYuan/View/MemberManageListViewCell.m @@ -19,7 +19,7 @@ -(void)loadList:(MemberNanageListData*)data { NSString*str=[NSString stringWithFormat:@"%@%@",kGetIconUrl,data.userImg]; - [self.huiYuanImg sd_setImageWithURL:[NSURL URLWithString:str]]; + [self.huiYuanImg sd_setImageWithURL:[NSURL URLWithString:str] placeholderImage:nil options:SDWebImageAllowInvalidSSLCertificates]; self.huiYuanName.text = [NSString stringWithFormat:@"%@(%@)",data.nickName,data.userName]; self.lastLoginTime.text = [NSString stringWithFormat:@"最后登录时间:%@",data.loginTime]; diff --git a/Ifish/controllers/IfishTabControllers/探索/IfishNewShopsFlie/IfishHuiYuan/View/ShopMemberDetailViewInfoCell.m b/Ifish/controllers/IfishTabControllers/探索/IfishNewShopsFlie/IfishHuiYuan/View/ShopMemberDetailViewInfoCell.m index eb949e2..8d7a00c 100644 --- a/Ifish/controllers/IfishTabControllers/探索/IfishNewShopsFlie/IfishHuiYuan/View/ShopMemberDetailViewInfoCell.m +++ b/Ifish/controllers/IfishTabControllers/探索/IfishNewShopsFlie/IfishHuiYuan/View/ShopMemberDetailViewInfoCell.m @@ -22,7 +22,7 @@ -(void)loadataWith:(MemberNanageListData*)data andUserInfo:(ShopUserDatailData *)user{ NSString*str=[NSString stringWithFormat:@"%@%@",kGetIconUrl,data.userImg]; - [_memberuserImg sd_setImageWithURL:[NSURL URLWithString:str]]; + [_memberuserImg sd_setImageWithURL:[NSURL URLWithString:str]placeholderImage:nil options:SDWebImageAllowInvalidSSLCertificates]; _memberName.text = data.nickName; _lastLogTime.text = [NSString stringWithFormat:@"最后登录时间%@",data.loginTime];; diff --git a/Ifish/controllers/IfishTabControllers/探索/IfishNewShopsFlie/IfishKanHuGuanli/KanHuGuanLi1ViewCell.m b/Ifish/controllers/IfishTabControllers/探索/IfishNewShopsFlie/IfishKanHuGuanli/KanHuGuanLi1ViewCell.m index 4d8c303..7eac0b4 100644 --- a/Ifish/controllers/IfishTabControllers/探索/IfishNewShopsFlie/IfishKanHuGuanli/KanHuGuanLi1ViewCell.m +++ b/Ifish/controllers/IfishTabControllers/探索/IfishNewShopsFlie/IfishKanHuGuanli/KanHuGuanLi1ViewCell.m @@ -26,7 +26,7 @@ -(void)loadListData:(KanHuListModel*)model { - [self.UserImg sd_setImageWithURL:[NSURL URLWithString:[NSString stringWithFormat:@"%@%@",kGetIconUrl,model.userImg]]]; + [self.UserImg sd_setImageWithURL:[NSURL URLWithString:[NSString stringWithFormat:@"%@%@",kGetIconUrl,model.userImg]]placeholderImage:nil options:SDWebImageAllowInvalidSSLCertificates]; self.userName.text = model.nickName; } diff --git a/Ifish/controllers/IfishTabControllers/探索/IfishNewShopsFlie/IfishShopEdite/VController/IfishShopEditeNewViewController.m b/Ifish/controllers/IfishTabControllers/探索/IfishNewShopsFlie/IfishShopEdite/VController/IfishShopEditeNewViewController.m index 48378a3..b3d75e2 100644 --- a/Ifish/controllers/IfishTabControllers/探索/IfishNewShopsFlie/IfishShopEdite/VController/IfishShopEditeNewViewController.m +++ b/Ifish/controllers/IfishTabControllers/探索/IfishNewShopsFlie/IfishShopEdite/VController/IfishShopEditeNewViewController.m @@ -450,7 +450,7 @@ UIGestureRecognizerDelegate> NSString * imgUrl = [NSString stringWithFormat:@"%@/shops/%@/%@?time=%@",JIEKOUPORTHTTP,self.shopInfo.userId,self.shopInfo.picture4,timeString]; - [cell.shopImg sd_setImageWithURL:[NSURL URLWithString:imgUrl]]; + [cell.shopImg sd_setImageWithURL:[NSURL URLWithString:imgUrl]placeholderImage:nil options:SDWebImageAllowInvalidSSLCertificates]; } } diff --git a/Ifish/controllers/IfishTabControllers/探索/IfishNewShopsFlie/ShopCertificationNewFile/ViewControlller/IfishShopCerNewViewController.m b/Ifish/controllers/IfishTabControllers/探索/IfishNewShopsFlie/ShopCertificationNewFile/ViewControlller/IfishShopCerNewViewController.m index fe10bdc..84fdfd3 100644 --- a/Ifish/controllers/IfishTabControllers/探索/IfishNewShopsFlie/ShopCertificationNewFile/ViewControlller/IfishShopCerNewViewController.m +++ b/Ifish/controllers/IfishTabControllers/探索/IfishNewShopsFlie/ShopCertificationNewFile/ViewControlller/IfishShopCerNewViewController.m @@ -172,13 +172,13 @@ extern BOOL cerViewFormRootVC; NSString *timeString = [NSString stringWithFormat:@"%.0f",time]; NSString *iDsurfaceUrl =[NSString stringWithFormat:@"%@/shops/%@/%@?time=%@",JIEKOUPORTHTTP,self.statusM.userId,self.statusM.picture1,timeString]; - [cell.iDsurface sd_setImageWithURL:[NSURL URLWithString:iDsurfaceUrl] placeholderImage:[UIImage imageNamed:@"live_hold.png"]]; + [cell.iDsurface sd_setImageWithURL:[NSURL URLWithString:iDsurfaceUrl] placeholderImage:[UIImage imageNamed:@"live_hold.png"]options:SDWebImageAllowInvalidSSLCertificates]; NSString *iDbackUrl =[NSString stringWithFormat:@"%@/shops/%@/%@?time=%@",JIEKOUPORTHTTP,self.statusM.userId,self.statusM.picture2,timeString]; - [cell.iDback sd_setImageWithURL:[NSURL URLWithString:iDbackUrl] placeholderImage:[UIImage imageNamed:@"live_hold.png"]]; + [cell.iDback sd_setImageWithURL:[NSURL URLWithString:iDbackUrl] placeholderImage:[UIImage imageNamed:@"live_hold.png"]options:SDWebImageAllowInvalidSSLCertificates]; NSString *shopCerUrl =[NSString stringWithFormat:@"%@/shops/%@/%@?time=%@",JIEKOUPORTHTTP,self.statusM.userId,self.statusM.picture3,timeString]; - [cell.shopCer sd_setImageWithURL:[NSURL URLWithString:shopCerUrl] placeholderImage:[UIImage imageNamed:@"live_hold.png"]]; + [cell.shopCer sd_setImageWithURL:[NSURL URLWithString:shopCerUrl] placeholderImage:[UIImage imageNamed:@"live_hold.png"]options:SDWebImageAllowInvalidSSLCertificates]; } diff --git a/Ifish/controllers/IfishTabControllers/探索/IfishNewShopsFlie/ShopGoods/view/ShopGoodsListViewCell.m b/Ifish/controllers/IfishTabControllers/探索/IfishNewShopsFlie/ShopGoods/view/ShopGoodsListViewCell.m index 40e73ff..f47ca8e 100644 --- a/Ifish/controllers/IfishTabControllers/探索/IfishNewShopsFlie/ShopGoods/view/ShopGoodsListViewCell.m +++ b/Ifish/controllers/IfishTabControllers/探索/IfishNewShopsFlie/ShopGoods/view/ShopGoodsListViewCell.m @@ -19,7 +19,7 @@ { NSString*strUrl=[NSString stringWithFormat:@"%@%@/%@",kGetShopVideoImg,data.userId,data.commodityImg]; - [self.goodsImg sd_setImageWithURL:[NSURL URLWithString:strUrl] placeholderImage:[UIImage imageNamed:@"live_hold.png"]]; + [self.goodsImg sd_setImageWithURL:[NSURL URLWithString:strUrl] placeholderImage:[UIImage imageNamed:@"live_hold.png"]options:SDWebImageAllowInvalidSSLCertificates]; self.goodsName.text = [NSString stringWithFormat:@"%@",data.commodityName]; NSString *dateStr = [NSString stringWithFormat:@"%@",data.createTime]; NSDate *date = [dataContorl formatDateTime:dateStr]; diff --git a/Ifish/controllers/IfishTabControllers/探索/IfishNewShopsFlie/ShopGoods/view/VideoEditeVideoCell.m b/Ifish/controllers/IfishTabControllers/探索/IfishNewShopsFlie/ShopGoods/view/VideoEditeVideoCell.m index 34ca7e1..016d4ee 100644 --- a/Ifish/controllers/IfishTabControllers/探索/IfishNewShopsFlie/ShopGoods/view/VideoEditeVideoCell.m +++ b/Ifish/controllers/IfishTabControllers/探索/IfishNewShopsFlie/ShopGoods/view/VideoEditeVideoCell.m @@ -30,7 +30,7 @@ { NSString*strUrl=[NSString stringWithFormat:@"%@%@/%@",kGetShopVideoImg,data.userId,data.commodityImg]; - [self.videoShotImg sd_setImageWithURL:[NSURL URLWithString:strUrl] placeholderImage:[UIImage imageNamed:@"live_hold.png"]]; + [self.videoShotImg sd_setImageWithURL:[NSURL URLWithString:strUrl] placeholderImage:[UIImage imageNamed:@"live_hold.png"]options:SDWebImageAllowInvalidSSLCertificates]; } diff --git a/Ifish/controllers/IfishTabControllers/探索/IfishNewShopsFlie/view/ShopAlreadyCertifyViewCell.m b/Ifish/controllers/IfishTabControllers/探索/IfishNewShopsFlie/view/ShopAlreadyCertifyViewCell.m index 10f32ce..b0ca67f 100644 --- a/Ifish/controllers/IfishTabControllers/探索/IfishNewShopsFlie/view/ShopAlreadyCertifyViewCell.m +++ b/Ifish/controllers/IfishTabControllers/探索/IfishNewShopsFlie/view/ShopAlreadyCertifyViewCell.m @@ -41,7 +41,7 @@ -(void)loadDataWith:(CertificationShopModel*)model{ UserModel *userModel=[dataContorl getUserInfo]; - [self.shopUserIcon sd_setImageWithURL:[NSURL URLWithString:[NSString stringWithFormat:@"%@%@",kGetIconUrl,userModel.userImg]]]; + [self.shopUserIcon sd_setImageWithURL:[NSURL URLWithString:[NSString stringWithFormat:@"%@%@",kGetIconUrl,userModel.userImg]]placeholderImage:nil options:SDWebImageAllowInvalidSSLCertificates]; self.shopAdderess.text =[NSString stringWithFormat:@"详细地址:%@%@%@%@",model.shopsProvince,model.shopsCity,model.shopsArea,model.shopsAddress]; self.shopTel.text = [NSString stringWithFormat:@"联系方式:%@",model.shopsPhone]; self.shopUserName.text = userModel.nickName; diff --git a/Ifish/controllers/IfishTabControllers/探索/IfishUsersActivity/view/IFishUserActivityListCell.m b/Ifish/controllers/IfishTabControllers/探索/IfishUsersActivity/view/IFishUserActivityListCell.m index b0be20f..baaf050 100644 --- a/Ifish/controllers/IfishTabControllers/探索/IfishUsersActivity/view/IFishUserActivityListCell.m +++ b/Ifish/controllers/IfishTabControllers/探索/IfishUsersActivity/view/IFishUserActivityListCell.m @@ -28,7 +28,7 @@ NSString*strUrl=[NSString stringWithFormat:@"%@%@",kGetIconUrl,data.userImg]; - [self.userImg sd_setImageWithURL:[NSURL URLWithString:strUrl] placeholderImage:[UIImage imageNamed:@"live_hold.png"]]; + [self.userImg sd_setImageWithURL:[NSURL URLWithString:strUrl] placeholderImage:[UIImage imageNamed:@"live_hold.png"]options:SDWebImageAllowInvalidSSLCertificates]; self.levelLabel.text = [NSString stringWithFormat:@"LV%@",data.gradeNum]; self.nameLab.text = data.nickName; NSString *dateStr = [NSString stringWithFormat:@"%@",data.createTime]; diff --git a/Ifish/controllers/IfishTabControllers/探索/lookafterServer/KanHuFuWuXInRuKou/IFishShopsViewCell.m b/Ifish/controllers/IfishTabControllers/探索/lookafterServer/KanHuFuWuXInRuKou/IFishShopsViewCell.m index 153d31c..e8010d3 100644 --- a/Ifish/controllers/IfishTabControllers/探索/lookafterServer/KanHuFuWuXInRuKou/IFishShopsViewCell.m +++ b/Ifish/controllers/IfishTabControllers/探索/lookafterServer/KanHuFuWuXInRuKou/IFishShopsViewCell.m @@ -19,7 +19,7 @@ self.shopYear.text = shopInfo.remark; self.shopName.text = shopInfo.shopsName; NSString*str=[NSString stringWithFormat:@"%@%@",kGetIconUrl,shopInfo.userImg]; - [self.shopImg sd_setImageWithURL:[NSURL URLWithString:str] placeholderImage:[UIImage imageNamed:@""]]; + [self.shopImg sd_setImageWithURL:[NSURL URLWithString:str] placeholderImage:[UIImage imageNamed:@""]options:SDWebImageAllowInvalidSSLCertificates]; } diff --git a/Ifish/controllers/IfishTabControllers/探索/lookafterServer/KanHuFuWuXInRuKou/ShopDetailThredViewCell.m b/Ifish/controllers/IfishTabControllers/探索/lookafterServer/KanHuFuWuXInRuKou/ShopDetailThredViewCell.m index 740f0b6..896dd6c 100644 --- a/Ifish/controllers/IfishTabControllers/探索/lookafterServer/KanHuFuWuXInRuKou/ShopDetailThredViewCell.m +++ b/Ifish/controllers/IfishTabControllers/探索/lookafterServer/KanHuFuWuXInRuKou/ShopDetailThredViewCell.m @@ -31,7 +31,7 @@ // [self.shopDetailImg sd_setImageWithURL:[NSURL URLWithString:imgUrl]]; - [self.shopDetailImg sd_setImageWithURL:[NSURL URLWithString:imgUrl] placeholderImage:[UIImage imageNamed:@"shopdetail_palceholder"]]; + [self.shopDetailImg sd_setImageWithURL:[NSURL URLWithString:imgUrl] placeholderImage:[UIImage imageNamed:@"shopdetail_palceholder"]options:SDWebImageAllowInvalidSSLCertificates]; } diff --git a/Ifish/controllers/IfishTabControllers/探索/lookafterServer/KanHuFuWuXInRuKou/ShopDetailViewfirstCell.m b/Ifish/controllers/IfishTabControllers/探索/lookafterServer/KanHuFuWuXInRuKou/ShopDetailViewfirstCell.m index 183e476..549bb7f 100644 --- a/Ifish/controllers/IfishTabControllers/探索/lookafterServer/KanHuFuWuXInRuKou/ShopDetailViewfirstCell.m +++ b/Ifish/controllers/IfishTabControllers/探索/lookafterServer/KanHuFuWuXInRuKou/ShopDetailViewfirstCell.m @@ -36,7 +36,7 @@ -(void)loadDataWith:(IfishShopInfo *)info { NSString*str=[NSString stringWithFormat:@"%@%@",kGetIconUrl,info.userImg]; - [self.shopImg sd_setImageWithURL:[NSURL URLWithString:str]]; + [self.shopImg sd_setImageWithURL:[NSURL URLWithString:str]placeholderImage:nil options:SDWebImageAllowInvalidSSLCertificates]; self.nYear.text = info.remark; NSString *str2= @"已认证"; diff --git a/Ifish/controllers/IfishTabControllers/探索/lookafterServer/KanHuFuWuXInRuKou/ShopdetailViewGoodsList/ShopGoodsCollectionCell.m b/Ifish/controllers/IfishTabControllers/探索/lookafterServer/KanHuFuWuXInRuKou/ShopdetailViewGoodsList/ShopGoodsCollectionCell.m index 9956595..5ddb067 100644 --- a/Ifish/controllers/IfishTabControllers/探索/lookafterServer/KanHuFuWuXInRuKou/ShopdetailViewGoodsList/ShopGoodsCollectionCell.m +++ b/Ifish/controllers/IfishTabControllers/探索/lookafterServer/KanHuFuWuXInRuKou/ShopdetailViewGoodsList/ShopGoodsCollectionCell.m @@ -19,7 +19,7 @@ NSString*strUrl=[NSString stringWithFormat:@"%@%@/%@",kGetShopVideoImg,data.userId,data.commodityImg]; - [self.videoImg sd_setImageWithURL:[NSURL URLWithString:strUrl] placeholderImage:[UIImage imageNamed:@"live_hold.png"]]; + [self.videoImg sd_setImageWithURL:[NSURL URLWithString:strUrl] placeholderImage:[UIImage imageNamed:@"live_hold.png"]options:SDWebImageAllowInvalidSSLCertificates]; self.goodsName.text = data.commodityName; } diff --git a/Ifish/controllers/IfishTabControllers/探索/lookafterServer/MineKanHuViewController.m b/Ifish/controllers/IfishTabControllers/探索/lookafterServer/MineKanHuViewController.m index 3eb9bbe..9fb7bbf 100644 --- a/Ifish/controllers/IfishTabControllers/探索/lookafterServer/MineKanHuViewController.m +++ b/Ifish/controllers/IfishTabControllers/探索/lookafterServer/MineKanHuViewController.m @@ -145,7 +145,7 @@ //商户头像 原写成招牌 不想改了暂时用这 只是个名字而已 NSString *imgUrl=[NSString stringWithFormat:@"%@%@",kGetIconUrl,self.xinXiModel.userImg]; - [cell.shopZhaoPai sd_setImageWithURL:[NSURL URLWithString:imgUrl] placeholderImage:[UIImage imageNamed:@""]]; + [cell.shopZhaoPai sd_setImageWithURL:[NSURL URLWithString:imgUrl] placeholderImage:[UIImage imageNamed:@""]options:SDWebImageAllowInvalidSSLCertificates]; cell.selectionStyle = UITableViewCellSelectionStyleNone; cell.sChatBtn.hidden = YES; @@ -211,7 +211,7 @@ [cell.geiShopDaDianHuaBtn addTarget:self action:@selector(telAction:) forControlEvents:UIControlEventTouchUpInside]; NSString *imgUrl=[NSString stringWithFormat:@"%@%@",kGetIconUrl,self.xinXiModel.userImg]; - [cell.shopZhaoPai sd_setImageWithURL:[NSURL URLWithString:imgUrl] placeholderImage:[UIImage imageNamed:@""]]; + [cell.shopZhaoPai sd_setImageWithURL:[NSURL URLWithString:imgUrl] placeholderImage:[UIImage imageNamed:@""]options:SDWebImageAllowInvalidSSLCertificates]; cell.selectionStyle = UITableViewCellSelectionStyleNone; [cell.sChatBtn addTarget:self action:@selector(chatBtnAction:) forControlEvents:UIControlEventTouchUpInside]; diff --git a/Ifish/controllers/IfishTabControllers/探索/lookafterWorkbech/KanHuWorkViewFirstCell.m b/Ifish/controllers/IfishTabControllers/探索/lookafterWorkbech/KanHuWorkViewFirstCell.m index 62fba35..f14b497 100644 --- a/Ifish/controllers/IfishTabControllers/探索/lookafterWorkbech/KanHuWorkViewFirstCell.m +++ b/Ifish/controllers/IfishTabControllers/探索/lookafterWorkbech/KanHuWorkViewFirstCell.m @@ -24,7 +24,7 @@ UserModel *userModel=[dataContorl getUserInfo]; - [self.headerImg sd_setImageWithURL:[NSURL URLWithString:[NSString stringWithFormat:@"%@%@",kGetIconUrl,userModel.userImg]]]; + [self.headerImg sd_setImageWithURL:[NSURL URLWithString:[NSString stringWithFormat:@"%@%@",kGetIconUrl,userModel.userImg]] placeholderImage:nil options:SDWebImageAllowInvalidSSLCertificates]; self.nameLabel.text = shopinfo.shopsName; self.telLbel.text = shopinfo.shopsPhone; self.loactionLabel.text =[NSString stringWithFormat:@"%@%@%@%@",shopinfo.shopsProvince,shopinfo.shopsCity,shopinfo.shopsArea,shopinfo.shopsAddress]; diff --git a/Ifish/controllers/IfishTabControllers/探索/lookafterWorkbech/LookAfterReportViewController.m b/Ifish/controllers/IfishTabControllers/探索/lookafterWorkbech/LookAfterReportViewController.m index 8b340d0..82ba6db 100644 --- a/Ifish/controllers/IfishTabControllers/探索/lookafterWorkbech/LookAfterReportViewController.m +++ b/Ifish/controllers/IfishTabControllers/探索/lookafterWorkbech/LookAfterReportViewController.m @@ -99,7 +99,7 @@ NSString *imhUrl = [NSString stringWithFormat:@"%@%@",kGetKanHuUrl,self.baGaoMod.shareImg]; - [cell.lastCameraImg sd_setImageWithURL:[NSURL URLWithString:imhUrl] placeholderImage:[UIImage imageNamed:@"ic_header.png"]]; + [cell.lastCameraImg sd_setImageWithURL:[NSURL URLWithString:imhUrl] placeholderImage:[UIImage imageNamed:@"ic_header.png"]options:SDWebImageAllowInvalidSSLCertificates]; cell.selectionStyle = UITableViewCellSelectionStyleNone; [cell cellSetBackViewCorner]; @@ -174,7 +174,7 @@ CertificationShopModel *ShopsInfo= [[DataCenter defaultDtacenter] valueForKey:@"ShopsInfo"]; - [cell.shangJiaImg sd_setImageWithURL:[NSURL URLWithString:[NSString stringWithFormat:@"%@%@",kGetIconUrl,ShopsInfo.userImg]] placeholderImage:[UIImage imageNamed:@""]]; + [cell.shangJiaImg sd_setImageWithURL:[NSURL URLWithString:[NSString stringWithFormat:@"%@%@",kGetIconUrl,ShopsInfo.userImg]] placeholderImage:[UIImage imageNamed:@""]options:SDWebImageAllowInvalidSSLCertificates]; cell.shangJiaName.text = ShopsInfo.shopsName; UserModel*umodel=[[DataCenter defaultDtacenter]valueForKey:@"UserLogIn"]; diff --git a/Ifish/controllers/IfishTabControllers/设备/IfishBCShopItemCell.m b/Ifish/controllers/IfishTabControllers/设备/IfishBCShopItemCell.m index abeecfb..322f3dc 100644 --- a/Ifish/controllers/IfishTabControllers/设备/IfishBCShopItemCell.m +++ b/Ifish/controllers/IfishTabControllers/设备/IfishBCShopItemCell.m @@ -18,7 +18,7 @@ -(void)loadCellData:(IfishGoodsData*)model { - [self.goodsImg sd_setImageWithURL:[NSURL URLWithString:model.goodsPicture] placeholderImage:[UIImage imageNamed:@"Ifish_goodsholder"]]; + [self.goodsImg sd_setImageWithURL:[NSURL URLWithString:model.goodsPicture] placeholderImage:[UIImage imageNamed:@"Ifish_goodsholder"]options:SDWebImageAllowInvalidSSLCertificates]; self.goodsName.text = model.goodsName; self.shopName.text = model.shopName; diff --git a/Ifish/controllers/IfishTabControllers/设备/IfishDeviceViewController.m b/Ifish/controllers/IfishTabControllers/设备/IfishDeviceViewController.m index f54318d..6d1b445 100644 --- a/Ifish/controllers/IfishTabControllers/设备/IfishDeviceViewController.m +++ b/Ifish/controllers/IfishTabControllers/设备/IfishDeviceViewController.m @@ -627,13 +627,13 @@ Assign BOOL isPush; }else if (wechatImgUrl.length){ - [_userImgView sd_setImageWithURL:[NSURL URLWithString:wechatImgUrl]]; + [_userImgView sd_setImageWithURL:[NSURL URLWithString:wechatImgUrl] placeholderImage:nil options:SDWebImageAllowInvalidSSLCertificates]; } else{ NSLog(@"%@",[NSString stringWithFormat:@"%@%@",kGetIconUrl,umodel.userImg]); - [_userImgView sd_setImageWithURL:[NSURL URLWithString:[NSString stringWithFormat:@"%@%@",kGetIconUrl,umodel.userImg]]]; + [_userImgView sd_setImageWithURL:[NSURL URLWithString:[NSString stringWithFormat:@"%@%@",kGetIconUrl,umodel.userImg]] placeholderImage:nil options:SDWebImageAllowInvalidSSLCertificates]; } diff --git a/Ifish/controllers/IfishTabControllers/设备/Informations/View/IfishInformationListViewCell.m b/Ifish/controllers/IfishTabControllers/设备/Informations/View/IfishInformationListViewCell.m index 5d17bda..9cae871 100644 --- a/Ifish/controllers/IfishTabControllers/设备/Informations/View/IfishInformationListViewCell.m +++ b/Ifish/controllers/IfishTabControllers/设备/Informations/View/IfishInformationListViewCell.m @@ -17,7 +17,7 @@ -(void)loadCellDataWith:(IfishInformations *)info { - [self.newsimg sd_setImageWithURL:[NSURL URLWithString:info.image]]; + [self.newsimg sd_setImageWithURL:[NSURL URLWithString:info.image] placeholderImage:nil options:SDWebImageAllowInvalidSSLCertificates]; self.titlelab.text = info.title; self.detailLabe.text = info.contents; self.watchNumber.text = [NSString stringWithFormat:@"%d",info.clickNum]; diff --git a/Ifish/controllers/IfishYooseeFile/IfishYooseeControlller/IfishP2PMonitorController.m b/Ifish/controllers/IfishYooseeFile/IfishYooseeControlller/IfishP2PMonitorController.m index 4fb6304..665f4f4 100644 --- a/Ifish/controllers/IfishYooseeFile/IfishYooseeControlller/IfishP2PMonitorController.m +++ b/Ifish/controllers/IfishYooseeFile/IfishYooseeControlller/IfishP2PMonitorController.m @@ -909,6 +909,10 @@ Strong UIImage *screenShotImage;//截图 -(void)deleteCameraAtRequset{ AFHTTPRequestOperationManager*mannager=[AFHTTPRequestOperationManager manager]; + AFSecurityPolicy*policy = [[AFSecurityPolicy alloc]init]; + policy.validatesDomainName=NO; + policy.validatesCertificateChain=NO; + mannager.securityPolicy =policy; mannager.responseSerializer=[AFHTTPResponseSerializer serializer]; NSMutableDictionary * para = [NSMutableDictionary dictionary]; diff --git a/Ifish/controllers/IfishYooseeFile/IfishYooseeControlller/yooseFishTankView/YseeCollectionCell/FishControlFirstCell.m b/Ifish/controllers/IfishYooseeFile/IfishYooseeControlller/yooseFishTankView/YseeCollectionCell/FishControlFirstCell.m index 0c7b606..5e634a4 100644 --- a/Ifish/controllers/IfishYooseeFile/IfishYooseeControlller/yooseFishTankView/YseeCollectionCell/FishControlFirstCell.m +++ b/Ifish/controllers/IfishYooseeFile/IfishYooseeControlller/yooseFishTankView/YseeCollectionCell/FishControlFirstCell.m @@ -44,7 +44,7 @@ if (!self.factoryIcon.image) { self.factoryIcon.image = [UIImage imageNamed:@"brandLogo_hold"]; } - [self.factoryIcon sd_setImageWithURL:[NSURL URLWithString:[NSString stringWithFormat:@"%@%@",kGetLogUrl,devicemodel.logo]] placeholderImage:[UIImage imageNamed:@"brandLogo_hold"]]; + [self.factoryIcon sd_setImageWithURL:[NSURL URLWithString:[NSString stringWithFormat:@"%@%@",kGetLogUrl,devicemodel.logo]] placeholderImage:[UIImage imageNamed:@"brandLogo_hold"]options:SDWebImageAllowInvalidSSLCertificates]; if (!self.factoryIcon) { self.factoryIcon.image = [UIImage imageNamed:@"greenbtn_big"]; } diff --git a/Ifish/controllers/IfishYooseeFile/IfishYooseeHelper/KTPhotoBrowser/KTPhotoScrollViewController.m b/Ifish/controllers/IfishYooseeFile/IfishYooseeHelper/KTPhotoBrowser/KTPhotoScrollViewController.m index 884a096..debb95b 100644 --- a/Ifish/controllers/IfishYooseeFile/IfishYooseeHelper/KTPhotoBrowser/KTPhotoScrollViewController.m +++ b/Ifish/controllers/IfishYooseeFile/IfishYooseeHelper/KTPhotoBrowser/KTPhotoScrollViewController.m @@ -231,6 +231,10 @@ const CGFloat ktkDefaultToolbarHeight = 49; -(void)getHtmlFileWith:(UIImage*)image addTag:(NSInteger)btnTag{ AFHTTPRequestOperationManager*manager=[AFHTTPRequestOperationManager manager]; + AFSecurityPolicy*policy = [[AFSecurityPolicy alloc]init]; + policy.validatesDomainName=NO; + policy.validatesCertificateChain=NO; + manager.securityPolicy =policy; manager.requestSerializer = [AFJSONRequestSerializer serializer]; manager.responseSerializer=[AFHTTPResponseSerializer serializer]; NSString *title =@"来自爱鱼奇分享"; diff --git a/Ifish/controllers/erweima/ScanViewController.m b/Ifish/controllers/erweima/ScanViewController.m index 10149bb..46672fc 100644 --- a/Ifish/controllers/erweima/ScanViewController.m +++ b/Ifish/controllers/erweima/ScanViewController.m @@ -440,6 +440,10 @@ AFHTTPRequestOperationManager*mannager=[AFHTTPRequestOperationManager manager]; + AFSecurityPolicy*policy = [[AFSecurityPolicy alloc]init]; + policy.validatesDomainName=NO; + policy.validatesCertificateChain=NO; + mannager.securityPolicy =policy; mannager.responseSerializer=[AFHTTPResponseSerializer serializer]; NSMutableDictionary * para = [NSMutableDictionary dictionary]; [para setValue:cameraId forKey:@"cameraId"]; diff --git a/Ifish/views/Photo/LYPhotoShowView.m b/Ifish/views/Photo/LYPhotoShowView.m index 4fbda21..d3f2219 100755 --- a/Ifish/views/Photo/LYPhotoShowView.m +++ b/Ifish/views/Photo/LYPhotoShowView.m @@ -159,7 +159,7 @@ if ([LYHelper isUrl:imgUrl]) {//是图片链接 - [photo sd_setImageWithURL:[NSURL URLWithString:imgUrl] placeholderImage:[UIImage imageNamed:@"icon1"]]; + [photo sd_setImageWithURL:[NSURL URLWithString:imgUrl] placeholderImage:[UIImage imageNamed:@"icon1"]options:SDWebImageAllowInvalidSSLCertificates];