SDwebimage和af的修改

This commit is contained in:
祝发冬 2023-08-28 19:34:55 +08:00
parent 033e23e13d
commit f38f9effaa
39 changed files with 99 additions and 47 deletions

View File

@ -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;
}

View File

@ -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"];

View File

@ -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];;

View File

@ -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])
{

View File

@ -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];

View File

@ -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];

View File

@ -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];

View File

@ -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];

View File

@ -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];
});
}
}

View File

@ -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"];

View File

@ -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";

View File

@ -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]]) {

View File

@ -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;

View File

@ -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;

View File

@ -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];
}

View File

@ -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];

View File

@ -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];;

View File

@ -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;
}

View File

@ -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];
}
}

View File

@ -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];
}

View File

@ -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];

View File

@ -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];
}

View File

@ -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;

View File

@ -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];

View File

@ -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];
}

View File

@ -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];
}

View File

@ -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= @"已认证";

View File

@ -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;
}

View File

@ -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];

View File

@ -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];

View File

@ -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"];

View File

@ -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;

View File

@ -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];
}

View File

@ -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];

View File

@ -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];

View File

@ -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"];
}

View File

@ -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 =@"来自爱鱼奇分享";

View File

@ -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"];

View File

@ -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];