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